Commit 2f50ae4b authored by Ivan Kokshaysky's avatar Ivan Kokshaysky Committed by Arnaldo Carvalho de Melo

[PATCH] alpha: compile warning fix

Make the "addr" arg to test_bit "const" to prevent flood of compile
warnings in networking code.
parent 47c872b3
...@@ -233,7 +233,7 @@ __test_and_change_bit(unsigned long nr, volatile void * addr) ...@@ -233,7 +233,7 @@ __test_and_change_bit(unsigned long nr, volatile void * addr)
} }
static inline int static inline int
test_bit(int nr, volatile void * addr) test_bit(int nr, const volatile void * addr)
{ {
return (1UL & (((const int *) addr)[nr >> 5] >> (nr & 31))) != 0UL; return (1UL & (((const int *) addr)[nr >> 5] >> (nr & 31))) != 0UL;
} }
......
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