summaryrefslogtreecommitdiffstats
path: root/include/asm-x86
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-03-22 13:27:38 -0700
committerIngo Molnar <mingo@elte.hu>2008-04-17 17:41:30 +0200
commitaa040b2f0693695ae393cd9b8a93055952dbf76f (patch)
tree80d47769cbd5742e3436765899dc29aa05c3be7e /include/asm-x86
parent537e33136443bcd53ee13bc32a8f0fa46b1f3fdb (diff)
downloadop-kernel-dev-aa040b2f0693695ae393cd9b8a93055952dbf76f.zip
op-kernel-dev-aa040b2f0693695ae393cd9b8a93055952dbf76f.tar.gz
x86: simplify sync_test_bit(), improve
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>
Diffstat (limited to 'include/asm-x86')
-rw-r--r--include/asm-x86/sync_bitops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/sync_bitops.h b/include/asm-x86/sync_bitops.h
index f1078a5..b47a1d0 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
OpenPOWER on IntegriCloud