mirror of
https://github.com/torvalds/linux.git
synced 2024-10-23 05:30:55 +00:00
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>
This commit is contained in:
parent
2f528020a2
commit
b7e2a6389e
|
@ -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>
|
||||
|
|
|
@ -173,7 +173,7 @@ u32 __cmpxchg_u32(volatile u32 *ptr, u32 old, u32 new)
|
|||
}
|
||||
EXPORT_SYMBOL(__cmpxchg_u32);
|
||||
|
||||
u64 __cmpxchg_u64(u64 *ptr, u64 old, u64 new)
|
||||
u64 __cmpxchg_u64(volatile u64 *ptr, u64 old, u64 new)
|
||||
{
|
||||
unsigned long flags;
|
||||
u64 prev;
|
||||
|
|
Loading…
Reference in New Issue
Block a user