atomics: Constify loads: Fix powerpc build

Fixes:          5e9a82e898 ("atomics: Constify loads")
Sponsored by:   The FreeBSD Foundation
This commit is contained in:
Olivier Certner 2024-12-16 20:12:14 +01:00
parent 487788a69f
commit a9722e5ae8
No known key found for this signature in database
GPG key ID: 8CA13040971E2627

View file

@ -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; \