x86/asm: Add instruction suffixes to bitops 98/292798/2
authorJan Beulich <JBeulich@suse.com>
Mon, 26 Feb 2018 11:11:51 +0000 (04:11 -0700)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 15 May 2023 04:43:47 +0000 (13:43 +0900)
commitf8fdcbf52ad20b117b6bd64f554ddb6fd1cf61f6
tree52949b358ea7d044e1549edf348ef519327301d7
parent28ce3ccd93f823dbdb6541be2eef73052f87ba07
x86/asm: Add instruction suffixes to bitops

commit 22636f8c9511245cb3c8412039f1dd95afb3aa59 upstream.

Omitting suffixes from instructions in AT&T mode is bad practice when
operand size cannot be determined by the assembler from register
operands, and is likely going to be warned about by upstream gas in the
future (mine does already). Add the missing suffixes here. Note that for
64-bit this means some operations change from being 32-bit to 64-bit.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/5A93F98702000078001ABACC@prv-mh.provo.novell.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[sw0312.kim: cherry-pick stable linux-4.4.y commit eea4429288d to resolve gcc-12 build issue]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I93b864a6625fcc3e424641e14925c43795b153b6
arch/x86/include/asm/bitops.h
arch/x86/include/asm/percpu.h