浏览代码

[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 <ak@suse.de>
Andi Kleen 18 年之前
父节点
当前提交
9f6026b8c3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/asm-x86_64/bitops.h

+ 1 - 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)