From: Andi Kleen Date: Tue, 13 Feb 2007 12:26:25 +0000 (+0100) Subject: [PATCH] x86-64: Fix wrong gcc check in bitops.h X-Git-Tag: v2.6.21-rc1~184^2~16 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9f6026b8c308365d955faaf31dd0f457266d11f8;p=linux-2.6-omap-h63xx.git [PATCH] x86-64: Fix wrong gcc check in bitops.h gcc 5.0 will likely not have the constraint problem Signed-off-by: Andi Kleen --- diff --git a/include/asm-x86_64/bitops.h b/include/asm-x86_64/bitops.h index 8da9609070f..d4dbbe5f7bd 100644 --- a/include/asm-x86_64/bitops.h +++ b/include/asm-x86_64/bitops.h @@ -7,7 +7,7 @@ #include -#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)