OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
537e331
)
x86: simplify sync_test_bit(), improve
author
Jeremy Fitzhardinge
<jeremy@goop.org>
Sat, 22 Mar 2008 20:27:38 +0000
(13:27 -0700)
committer
Ingo 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
patch
|
blob
|
history
diff --git
a/include/asm-x86/sync_bitops.h
b/include/asm-x86/sync_bitops.h
index
f1078a5
..
b47a1d0
100644
(file)
--- 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