]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
x86_64: Fix wrong gcc check in bitops.h
authorAndi Kleen <ak@suse.de>
Sat, 17 Feb 2007 12:35:00 +0000 (13:35 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Mar 2007 18:50:22 +0000 (10:50 -0800)
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>
include/asm-x86_64/bitops.h

index 8da9609070f471eaac12ae7269c4479eca459b1e..d4dbbe5f7bd9f466451e0ee65572b6accf929277 100644 (file)
@@ -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)