summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2007-02-17 13:35:00 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2007-03-09 10:50:22 -0800
commit4c1a0698326b3eb9e4967fc91a919bbe5a36ed86 (patch)
tree1eed6a2ac5dcab367080a90f09736ea4531db11d /include
parentaac84df512958344a3e43651aa7063c6bb7f785b (diff)
x86_64: Fix wrong gcc check in bitops.h
gcc 5.0 will likely not have the constraint problem Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/asm-x86_64/bitops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86_64/bitops.h b/include/asm-x86_64/bitops.h
index 8da9609070f4..d4dbbe5f7bd9 100644
--- a/include/asm-x86_64/bitops.h
+++ b/include/asm-x86_64/bitops.h
@@ -7,7 +7,7 @@
#include <asm/alternative.h>
-#if __GNUC__ < 4 || __GNUC_MINOR__ < 1
+#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
/* Technically wrong, but this avoids compilation errors on some gcc
versions. */
#define ADDR "=m" (*(volatile long *) addr)