summaryrefslogtreecommitdiff
path: root/arch/sparc/lib
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2024-04-02 05:17:49 +0300
committerPaul E. McKenney <paulmck@kernel.org>2024-04-10 08:06:00 +0300
commitdbc93fdcdc0d4df7abad10aac14326a4a9975997 (patch)
tree08ff4b171a82cd2ae51572aded2a8624c66a59b7 /arch/sparc/lib
parentd7b52b48f006ea3dd2e682097a91eeda9dfb3df9 (diff)
downloadlinux-dbc93fdcdc0d4df7abad10aac14326a4a9975997.tar.xz
sparc32: add __cmpxchg_u{8,16}() and teach __cmpxchg() to handle those sizes
trivial now Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'arch/sparc/lib')
-rw-r--r--arch/sparc/lib/atomic32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc/lib/atomic32.c b/arch/sparc/lib/atomic32.c
index 0d215a772428..8ae880ebf07a 100644
--- a/arch/sparc/lib/atomic32.c
+++ b/arch/sparc/lib/atomic32.c
@@ -173,8 +173,12 @@ EXPORT_SYMBOL(sp32___change_bit);
return prev; \
}
+CMPXCHG(u8)
+CMPXCHG(u16)
CMPXCHG(u32)
CMPXCHG(u64)
+EXPORT_SYMBOL(__cmpxchg_u8);
+EXPORT_SYMBOL(__cmpxchg_u16);
EXPORT_SYMBOL(__cmpxchg_u32);
EXPORT_SYMBOL(__cmpxchg_u64);