diff options
author | Jan Beulich <JBeulich@suse.com> | 2018-02-26 14:11:51 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-02-28 17:18:41 +0300 |
commit | 22636f8c9511245cb3c8412039f1dd95afb3aa59 (patch) | |
tree | 3685d0de50afaf363a466c05f421e7955da8c1f9 /arch/x86/include/asm/percpu.h | |
parent | a368d7fd2a3c6babb852fe974018dd97916bcd3b (diff) | |
download | linux-22636f8c9511245cb3c8412039f1dd95afb3aa59.tar.xz |
x86/asm: Add instruction suffixes to bitops
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
Diffstat (limited to 'arch/x86/include/asm/percpu.h')
-rw-r--r-- | arch/x86/include/asm/percpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h index ba3c523aaf16..a06b07399d17 100644 --- a/arch/x86/include/asm/percpu.h +++ b/arch/x86/include/asm/percpu.h @@ -526,7 +526,7 @@ static inline bool x86_this_cpu_variable_test_bit(int nr, { bool oldbit; - asm volatile("bt "__percpu_arg(2)",%1" + asm volatile("btl "__percpu_arg(2)",%1" CC_SET(c) : CC_OUT(c) (oldbit) : "m" (*(unsigned long __percpu *)addr), "Ir" (nr)); |