mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
atomic: Update interceptor function signatures after commit 5e9a82e898
Fixes:5e9a82e898("atomics: Constify loads") (cherry picked from commitfa5f4c10a8)
This commit is contained in:
parent
b14c0e102e
commit
dd0fae3028
4 changed files with 5 additions and 5 deletions
|
|
@ -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); \
|
||||
|
|
|
|||
|
|
@ -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); \
|
||||
|
|
|
|||
|
|
@ -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"); \
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue