Skip to content

Commit

Permalink
[PATCH] x86-64: Fix wrong gcc check in bitops.h
Browse files Browse the repository at this point in the history
gcc 5.0 will likely not have the constraint problem
Signed-off-by: Andi Kleen <ak@suse.de>
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Feb 13, 2007
1 parent 2fb12a9 commit 9f6026b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-x86_64/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f6026b

Please sign in to comment.