atomic: Update interceptor function signatures after commit 5e9a82e898

Fixes:	5e9a82e898 ("atomics: Constify loads")

(cherry picked from commit fa5f4c10a8)
This commit is contained in:
Mark Johnston 2024-12-17 14:05:00 +00:00 committed by Olivier Certner
parent b14c0e102e
commit dd0fae3028
No known key found for this signature in database
GPG key ID: 8CA13040971E2627
4 changed files with 5 additions and 5 deletions

View file

@ -750,7 +750,7 @@ kasan_casueword(volatile u_long *base, u_long oldval, u_long *oldvalp,
}
#define _ASAN_ATOMIC_FUNC_LOAD(name, type) \
type kasan_atomic_load_##name(volatile type *ptr) \
type kasan_atomic_load_##name(const volatile type *ptr) \
{ \
kasan_shadow_check((uintptr_t)ptr, sizeof(type), true, \
__RET_ADDR); \

View file

@ -441,7 +441,7 @@ kcsan_copyout(const void *kaddr, void *uaddr, size_t len)
}
#define _CSAN_ATOMIC_FUNC_LOAD(name, type) \
type kcsan_atomic_load_##name(volatile type *ptr) \
type kcsan_atomic_load_##name(const volatile type *ptr) \
{ \
kcsan_access((uintptr_t)ptr, sizeof(type), false, true, \
__RET_ADDR); \

View file

@ -1220,7 +1220,7 @@ kmsan_casueword(volatile u_long *base, u_long oldval, u_long *oldvalp,
}
#define _MSAN_ATOMIC_FUNC_LOAD(name, type) \
type kmsan_atomic_load_##name(volatile type *ptr) \
type kmsan_atomic_load_##name(const volatile type *ptr) \
{ \
kmsan_check_arg(sizeof(ptr), \
"atomic_load_" #name "():args"); \

View file

@ -65,10 +65,10 @@
type sp##_atomic_readandclear_##name(volatile type *)
#define ATOMIC_SAN_LOAD(sp, name, type) \
type sp##_atomic_load_##name(volatile type *)
type sp##_atomic_load_##name(const volatile type *)
#define ATOMIC_SAN_LOAD_ACQ(sp, name, type) \
type sp##_atomic_load_acq_##name(volatile type *)
type sp##_atomic_load_acq_##name(const volatile type *)
#define ATOMIC_SAN_STORE(sp, name, type) \
void sp##_atomic_store_##name(volatile type *, type)