path: root/arch/x86/include/asm/bitops.h
diff options
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2019-01-11 09:49:30 +0100
committerBorislav Petkov <bp@suse.de>2019-01-12 17:50:48 +0100
commit88ca66d8540ca26119b1428cddb96b37925bdf01 (patch)
treeba448aedfe0787f75e3a0683a2cbfe0518905091 /arch/x86/include/asm/bitops.h
parentbfeffd155283772bbe78c6a05dec7c0128ee500c (diff)
x86/asm: Remove dead __GNUC__ conditionals
The minimum supported gcc version is >= 4.6, so these can be removed. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: x86-ml <x86@kernel.org> Link: https://lkml.kernel.org/r/20190111084931.24601-1-linux@rasmusvillemoes.dk
Diffstat (limited to 'arch/x86/include/asm/bitops.h')
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/include/asm/bitops.h b/arch/x86/include/asm/bitops.h
index ad7b210aa3f6..d153d570bb04 100644
--- a/arch/x86/include/asm/bitops.h
+++ b/arch/x86/include/asm/bitops.h
@@ -36,13 +36,7 @@
* bit 0 is the LSB of addr; bit 32 is the LSB of (addr+1).
-#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
-/* Technically wrong, but this avoids compilation errors on some gcc
- versions. */
-#define BITOP_ADDR(x) "=m" (*(volatile long *) (x))
#define BITOP_ADDR(x) "+m" (*(volatile long *) (x))
#define ADDR BITOP_ADDR(addr)

Privacy Policy