The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=61fab1341a6b51c1964bcd1eb800fbdf5a34a0ac

commit 61fab1341a6b51c1964bcd1eb800fbdf5a34a0ac
Author:     John Baldwin <[email protected]>
AuthorDate: 2023-05-25 17:44:53 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2023-05-25 17:44:53 +0000

    powerpc booke: Add an __unused wrapper for a variable only used under DEBUG.
---
 sys/powerpc/booke/pmap.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sys/powerpc/booke/pmap.c b/sys/powerpc/booke/pmap.c
index 1d8f95594399..07e961995cd7 100644
--- a/sys/powerpc/booke/pmap.c
+++ b/sys/powerpc/booke/pmap.c
@@ -133,8 +133,10 @@ __FBSDID("$FreeBSD$");
 
 #ifdef  DEBUG
 #define debugf(fmt, args...) printf(fmt, ##args)
+#define        __debug_used
 #else
 #define debugf(fmt, args...)
+#define        __debug_used    __unused
 #endif
 
 #ifdef __powerpc64__
@@ -632,7 +634,7 @@ mmu_booke_bootstrap(vm_offset_t start, vm_offset_t 
kernelend)
        int cnt, i, j;
        vm_paddr_t s, e, sz;
        vm_paddr_t physsz, hwphyssz;
-       u_int phys_avail_count;
+       u_int phys_avail_count __debug_used;
        vm_size_t kstack0_sz;
        vm_paddr_t kstack0_phys;
        vm_offset_t kstack0;

Reply via email to