fixup! tools: remove atomic_set_release() usage in tools/
Subsystems (2)
PATCH 1/1 fixup! tools: remove atomic_set_release() usage in tools/
Userspace versions of both atomic_set_release() and atomic_set() get translated into uatomic_set(). To avoid extra definitions of atomic_set_release(), replace its usage inside refcount_set_release() with atomic_set(). This results in no functional changes.
Fixes 1465347e498f ("mm: make vma cache SLAB_TYPESAFE_BY_RCU")
Reported-by kernel test robot <[email protected]>
Signed-off-by Suren Baghdasaryan <[email protected]>
--- tools/include/linux/refcount.h | 2 +- tools/testing/vma/linux/atomic.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
tools/include/linux/refcount.h +1 -1
@@ -62,7 +62,7 @@ static inline void refcount_set(refcount_t *r, unsigned int n)static inline void refcount_set_release (refcount_t *r,unsigned int n) { -atomic_set_release (&r->refs, n); +atomic_set (&r->refs, n); }static inline unsigned int refcount_read (const refcount_t *r)
tools/testing/vma/linux/atomic.h +0 -1
@@ -7,7 +7,6 @@#define atomic_inc (x) uatomic_inc(x)#define atomic_read (x) uatomic_read(x)#define atomic_set (x, y) uatomic_set(x, y) -#define atomic_set_release (x, y) uatomic_set(x, y)#define U8_MAX UCHAR_MAX#ifndef atomic_cmpxchg_relaxed
base-commit: b2a64caeafad6e37df1c68f878bfdd06ff14f4ec
Signature · 1 line
2.48.1.601.g30ceb7b040-goog