git: fce2a3509a65 - stable/14 - atomics: Constify loads: Fix powerpc build

From: Olivier Certner <olce_at_FreeBSD.org>
Date: Thu, 16 Jan 2025 18:08:36 UTC
The branch stable/14 has been updated by olce:

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

commit fce2a3509a65a374820dc889929f8e8f5dbd1707
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2024-12-16 19:12:14 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-01-16 18:07:01 +0000

    atomics: Constify loads: Fix powerpc build
    
    Fixes:          5e9a82e898d5 ("atomics: Constify loads")
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit a9722e5ae8519a9a28e950dbd8d489178e9bc27e)
    (cherry picked from commit 793939c9444dce957118fee412f5144c2e46aea3)
---
 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 8a565ef8ec67..f52ac9caac75 100644
--- a/sys/kern/subr_atomic64.c
+++ b/sys/kern/subr_atomic64.c
@@ -78,7 +78,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;							\