Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax
In directory sc8-pr-cvs1:/tmp/cvs-serv11571/include/asm
Modified Files:
bitops.h
Log Message:
variable_test_bit doesn't modify the value being tested, so it can take
a const modifier. This silences warnings that appear in 2.5.70
Index: bitops.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/bitops.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- bitops.h 28 Aug 2003 00:12:31 -0000 1.10
+++ bitops.h 28 Aug 2003 22:50:09 -0000 1.11
@@ -294,7 +294,7 @@
return ((1UL << (nr & 31)) & (((const volatile unsigned int *) addr)[nr >> 5])) != 0;
}
-static __inline__ int variable_test_bit(int nr, volatile void * addr)
+static __inline__ int variable_test_bit(int nr, const volatile void * addr)
{
int oldbit;
|