aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-07-19 02:33:08 +0000
committerMark Johnston <markj@FreeBSD.org>2026-08-06 13:24:43 +0000
commit9cc432da231b6fd977954df806dd0e003cbbe088 (patch)
tree52895d71289d9f2767f1d401e7a5ee839fe842bf
parentc4ea6b08e24e23302f0910b0ec3cf3fc1038143f (diff)
arm64: Fix the build
Fixes: a7e483ee146a ("vm_phys: Add a sysctl to dump registered fictitious memory ranges") (cherry picked from commit 91b419bc7e15f2138cb211c4d7c5be118c377c20)
-rw-r--r--sys/arm64/include/vm.h2
1 files changed, 2 insertions, 0 deletions
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_ */