The branch main has been updated by olce:

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

commit a9722e5ae8519a9a28e950dbd8d489178e9bc27e
Author:     Olivier Certner <o...@freebsd.org>
AuthorDate: 2024-12-16 19:12:14 +0000
Commit:     Olivier Certner <o...@freebsd.org>
CommitDate: 2024-12-16 19:15:25 +0000

    atomics: Constify loads: Fix powerpc build
    
    Fixes:          5e9a82e898d5 ("atomics: Constify loads")
    Sponsored by:   The FreeBSD Foundation
---
 sys/kern/subr_atomic64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/subr_atomic64.c b/sys/kern/subr_atomic64.c
index c8b0ed2bb38b..d9c5278334d5 100644
--- a/sys/kern/subr_atomic64.c
+++ b/sys/kern/subr_atomic64.c
@@ -77,7 +77,7 @@ static struct mtx a64_mtx_pool[A64_POOL_SIZE];
 
 #define ATOMIC64_EMU_UN(op, rt, block, ret) \
     rt \
-    atomic_##op##_64(volatile uint64_t *p) {                   \
+    atomic_##op##_64(const volatile uint64_t *p) {             \
        uint64_t tmp __unused;                                  \
        LOCK_A64();                                             \
        block;                                                  \

Reply via email to