]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/asm: Add instruction suffixes to bitops
authorJan Beulich <JBeulich@suse.com>
Mon, 26 Feb 2018 11:11:51 +0000 (04:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Jun 2021 06:22:09 +0000 (08:22 +0200)
commiteea4429288d1302f8699e78cab22cbcccc351f28
treee86c95fc8bf5283c90149eddc92a06cc54ed1bc0
parent5be66eab0bbcaf54857db40b1bbbe3b127631800
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>
arch/x86/include/asm/bitops.h
arch/x86/include/asm/percpu.h