Skip to content

Commit

Permalink
x86: simplify sync_test_bit(), improve
Browse files Browse the repository at this point in the history
Using a naked parameterless macro could lead to other tokens being
unexpectedly replaced.

Signed-off-by: Jeremy Fitzhardinge <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
jsgf authored and Ingo Molnar committed Apr 17, 2008
1 parent 537e331 commit aa040b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-x86/sync_bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit aa040b2

Please sign in to comment.