diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-04-02 05:07:58 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2024-04-10 08:06:00 +0300 |
commit | b7e2a6389e146325227d90eb3ee47bf11647cde6 (patch) | |
tree | a15cfc6cc25fa3d2603c5f9bbc0d827b9e74c848 /arch/sparc/include | |
parent | 2f528020a29021a9e5da1b85488993e8d9808a38 (diff) | |
download | linux-b7e2a6389e146325227d90eb3ee47bf11647cde6.tar.xz |
sparc32: make the first argument of __cmpxchg_u64() volatile u64 *
... to match all cmpxchg variants.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r-- | arch/sparc/include/asm/cmpxchg_32.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/cmpxchg_32.h b/arch/sparc/include/asm/cmpxchg_32.h index 2a05cb236480..05d5f86a56dc 100644 --- a/arch/sparc/include/asm/cmpxchg_32.h +++ b/arch/sparc/include/asm/cmpxchg_32.h @@ -63,7 +63,7 @@ __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) (unsigned long)_n_, sizeof(*(ptr))); \ }) -u64 __cmpxchg_u64(u64 *ptr, u64 old, u64 new); +u64 __cmpxchg_u64(volatile u64 *ptr, u64 old, u64 new); #define arch_cmpxchg64(ptr, old, new) __cmpxchg_u64(ptr, old, new) #include <asm-generic/cmpxchg-local.h> |