[Linux-ia64] bogus __clear_bit macro

From: Peter Chubb <peter_at_chubb.wattle.id.au>
Date: 2003-03-12 09:37:37
>>>>> "Kenneth" == Kenneth W Chen <Chen> writes:

Kenneth> David,
Kenneth> It looks like when __clear_bit() was implemented, the deletion of the macro falls through the crack.  This macro prohibit the actual __clear_bit to be invoked.


While you're fixing bitops.h, making test_bit take a const qualified
arg will kill some warnings in reiserfs...

--- /tmp/geta24522      2003-03-12 09:19:31.000000000 +1100
+++ linux/include/asm-ia64/bitops.h    2003-03-12 09:17:53.000000000 +1100
@@ -275,7 +275,7 @@
 }

 static __inline__ int
-test_bit (int nr, volatile void *addr)
+test_bit (int nr, const volatile void *addr)
 {
	return 1 & (((const volatile __u32 *) addr)[nr >> 5] >> (nr & 31));
 }
Received on Tue Mar 11 14:40:57 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:12 EST