projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.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
|
blame
|
history
diff --git
a/include/asm-x86/sync_bitops.h
b/include/asm-x86/sync_bitops.h
index f1078a5e4ed780c21f36629fe5ffd3d9eed69bda..b47a1d0b8a834719866a713dadf65a28fd566a4c 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