git: 9cc432da231b - stable/15 - arm64: Fix the build

Mark Johnston <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a74a1d5.46259.4eb69a4__9100.00052988238$1786028644$gmane$org@gitrepo.freebsd.org>
The branch stable/15 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=9cc432da231b6fd977954df806dd0e003cbbe088

commit 9cc432da231b6fd977954df806dd0e003cbbe088
Author:     Mark Johnston <[email protected]>
AuthorDate: 2026-07-19 02:33:08 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2026-08-06 13:24:43 +0000

    arm64: Fix the build
    
    Fixes:  a7e483ee146a ("vm_phys: Add a sysctl to dump registered fictitious memory ranges")
    (cherry picked from commit 91b419bc7e15f2138cb211c4d7c5be118c377c20)
---
 sys/arm64/include/vm.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/arm64/include/vm.h b/sys/arm64/include/vm.h
index e8c8f52fda0a..5ceaa9622aec 100644
--- a/sys/arm64/include/vm.h
+++ b/sys/arm64/include/vm.h
@@ -44,6 +44,7 @@
 /* If defined vmstat will try to use both of these in a switch statement */
 #define	VM_MEMATTR_WRITE_COMBINING	VM_MEMATTR_WRITE_THROUGH
 
+#ifndef LOCORE
 static inline const char *
 vm_memattr_name(vm_memattr_t memattr)
 {
@@ -65,5 +66,6 @@ vm_memattr_name(vm_memattr_t memattr)
 	}
 }
 #endif
+#endif
 
 #endif /* !_MACHINE_VM_H_ */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.