diff options
author | Olivier Certner <olce@FreeBSD.org> | 2024-12-16 19:12:14 +0000 |
---|---|---|
committer | Olivier Certner <olce@FreeBSD.org> | 2025-01-17 12:24:54 +0000 |
commit | 1cf5ab87c87ed72ee572971f33b68e5ddd595433 (patch) | |
tree | cc41dc83edc96b6773373d1e482a60d0aae80e49 | |
parent | b2d46346d89bd712dc28946c3ba6c27ea3b20bc9 (diff) |
atomics: Constify loads: Fix powerpc build
Fixes: 5e9a82e898d5 ("atomics: Constify loads")
Sponsored by: The FreeBSD Foundation
(cherry picked from commit a9722e5ae8519a9a28e950dbd8d489178e9bc27e)
-rw-r--r-- | sys/kern/subr_atomic64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_atomic64.c b/sys/kern/subr_atomic64.c index 483be123ea28..b629b74c7653 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 u_int64_t *p) { \ + atomic_##op##_64(const volatile u_int64_t *p) { \ u_int64_t tmp __unused; \ LOCK_A64(); \ block; \ |