Skip to content

Commit 929ad06

Browse files
ubizjakingomolnar
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 <ubizjak@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: "H. Peter Anvin" <hpa@zytor.com> Link: https://lore.kernel.org/r/20240408091547.90111-2-ubizjak@gmail.com
1 parent d1eec38 commit 929ad06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)