mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 07:23:14 +00:00
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>
This commit is contained in:
parent
537e331364
commit
aa040b2f06
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user