x86/percpu: Fix x86_this_cpu_variable_test_bit() asm template
authorUros Bizjak <ubizjak@gmail.com>
Thu, 4 Apr 2024 09:42:01 +0000 (11:42 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Apr 2024 10:42:17 +0000 (12:42 +0200)
commit4c3677c077582f8665806def3f6dd35587793c69
tree30fc627ebc1ef58d13a3d16b76596f69f2618d63
parent9ebe5500d4b25ee4cde04eec59a6764361a60709
x86/percpu: Fix x86_this_cpu_variable_test_bit() asm template

Fix x86_this_cpu_variable_test_bit(), which is implemented with an
incorrect asm template, where argument 2 (count argument) is considered
a percpu variable. However, x86_this_cpu_test_bit() is currently
used exclusively with constant bit number argument, so the called
x86_this_cpu_variable_test_bit() function is never instantiated.

The fix introduces named assembler operands to prevent this kind
of error.

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/20240404094218.448963-1-ubizjak@gmail.com
arch/x86/include/asm/percpu.h