blob: 1118d9e537ab4b2b2481d904e3770dc0de3041ef [file] [log] [blame]
From stable-bounces@linux.kernel.org Sat Feb 17 04:48:52 2007
From: Andi Kleen <ak@suse.de>
Date: Sat, 17 Feb 2007 13:35:00 +0100
Subject: x86_64: Fix wrong gcc check in bitops.h
To: stable@kernel.org
Message-ID: <200702171335.00583.ak@suse.de>
Content-Disposition: inline
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.20.1.orig/include/asm-x86_64/bitops.h
+++ linux-2.6.20.1/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)