x86/asm: Use %c/%n instead of %P operand modifier in asm templates
authorUros Bizjak <ubizjak@gmail.com>
Tue, 19 Mar 2024 10:40:13 +0000 (11:40 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 Mar 2024 12:15:35 +0000 (13:15 +0100)
commit41cd2e1ee96e56401a18dbce6f42f0bdaebcbf3b
treed79b359d643c96c0cb45eecef82fc6bc001a4f7a
parenta3ff53167cef2b5c6c8948246172d6f9279f037f
x86/asm: Use %c/%n instead of %P operand modifier in asm templates

The "P" asm operand modifier is a x86 target-specific modifier.

When used with a constant, the "P" modifier emits "cst" instead of
"$cst". This property is currently used to emit the bare constant
without all syntax-specific prefixes.

The generic "c" resp. "n" operand modifier should be used instead.

No functional changes intended.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Link: https://lore.kernel.org/r/20240319104418.284519-3-ubizjak@gmail.com
arch/x86/boot/main.c
arch/x86/include/asm/alternative.h
arch/x86/include/asm/atomic64_32.h
arch/x86/include/asm/cpufeature.h
arch/x86/include/asm/irq_stack.h
arch/x86/include/asm/uaccess.h