From: Jeremy Fitzhardinge Date: Sat, 22 Mar 2008 20:27:38 +0000 (-0700) Subject: x86: simplify sync_test_bit(), improve X-Git-Tag: v2.6.26-rc1~1154^2~105 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=aa040b2f0693695ae393cd9b8a93055952dbf76f;p=linux-2.6-omap-h63xx.git x86: simplify sync_test_bit(), improve Using a naked parameterless macro could lead to other tokens being unexpectedly replaced. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Ingo Molnar --- diff --git a/include/asm-x86/sync_bitops.h b/include/asm-x86/sync_bitops.h index f1078a5e4ed..b47a1d0b8a8 100644 --- a/include/asm-x86/sync_bitops.h +++ b/include/asm-x86/sync_bitops.h @@ -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