]> www.infradead.org Git - users/dwmw2/linux.git/commit
locking/atomic/x86: Use ALT_OUTPUT_SP() for __alternative_atomic64()
authorUros Bizjak <ubizjak@gmail.com>
Sun, 3 Nov 2024 16:09:31 +0000 (17:09 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 5 Nov 2024 11:55:34 +0000 (12:55 +0100)
commit8b64db9733c2e4d30fd068d0b9dcef7b4424b035
tree43a8886f120d45bfeebc73fd0afa4f7a5a95782e
parent36c2cf88808d47e926d11b98734f154fe4a9f50f
locking/atomic/x86: Use ALT_OUTPUT_SP() for __alternative_atomic64()

CONFIG_X86_CMPXCHG64 variant of x86_32 __alternative_atomic64()
macro uses CALL instruction inside asm statement. Use
ALT_OUTPUT_SP() macro to add required dependence on %esp register.

Fixes: 819165fb34b9 ("x86: Adjust asm constraints in atomic64 wrappers")
Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20241103160954.3329-1-ubizjak@gmail.com
arch/x86/include/asm/atomic64_32.h