Skip to content

Commit 929ad06

Browse files
ubizjakIngo Molnar
authored andcommitted
locking/atomic/x86: Correct the definition of __arch_try_cmpxchg128()
Correct the definition of __arch_try_cmpxchg128(), introduced by: b23e139 ("arch: Introduce arch_{,try_}_cmpxchg128{,_local}()") Fixes: b23e139 ("arch: Introduce arch_{,try_}_cmpxchg128{,_local}()") Signed-off-by: Uros Bizjak <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d1eec38 commit 929ad06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/cmpxchg_64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static __always_inline u128 arch_cmpxchg128_local(volatile u128 *ptr, u128 old,
6262
asm volatile(_lock "cmpxchg16b %[ptr]" \
6363
CC_SET(e) \
6464
: CC_OUT(e) (ret), \
65-
[ptr] "+m" (*ptr), \
65+
[ptr] "+m" (*(_ptr)), \
6666
"+a" (o.low), "+d" (o.high) \
6767
: "b" (n.low), "c" (n.high) \
6868
: "memory"); \

0 commit comments

Comments
 (0)