]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: simplify sync_test_bit(), improve
authorJeremy Fitzhardinge <jeremy@goop.org>
Sat, 22 Mar 2008 20:27:38 +0000 (13:27 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:30 +0000 (17:41 +0200)
Using a naked parameterless macro could lead to other tokens being
unexpectedly replaced.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/sync_bitops.h

index f1078a5e4ed780c21f36629fe5ffd3d9eed69bda..b47a1d0b8a834719866a713dadf65a28fd566a4c 100644 (file)
@@ -123,7 +123,7 @@ static inline int sync_test_and_change_bit(int nr, volatile unsigned long *addr)
        return oldbit;
 }
 
-#define sync_test_bit test_bit
+#define sync_test_bit(nr, addr) test_bit(nr, addr)
 
 #undef ADDR