Commit 7c09b520 authored by Linus Torvalds's avatar Linus Torvalds

Add a "const" qualifier to test_bit() on x86, to avoid

warnings for proper usage.
parent f08d3be8
...@@ -244,7 +244,7 @@ static __inline__ int constant_test_bit(int nr, const volatile unsigned long * a ...@@ -244,7 +244,7 @@ static __inline__ int constant_test_bit(int nr, const volatile unsigned long * a
return ((1UL << (nr & 31)) & (((const volatile unsigned int *) addr)[nr >> 5])) != 0; return ((1UL << (nr & 31)) & (((const volatile unsigned int *) addr)[nr >> 5])) != 0;
} }
static __inline__ int variable_test_bit(int nr, volatile unsigned long * addr) static __inline__ int variable_test_bit(int nr, const volatile unsigned long * addr)
{ {
int oldbit; int oldbit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment