]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ia64: declare test_bit() arg as "const"
authorPeter Chubb <peter@chubb.wattle.id.au>
Tue, 11 Mar 2003 08:47:38 +0000 (00:47 -0800)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Tue, 11 Mar 2003 08:47:38 +0000 (00:47 -0800)
While you're fixing bitops.h, making test_bit take a const qualified
arg will kill some warnings in reiserfs...

include/asm-ia64/bitops.h

index bec48081bba742c7a0d613c466b6e56d41aa548a..8a61b49df8b13917fb66d7cc1a90401af3c48c44 100644 (file)
@@ -275,7 +275,7 @@ __test_and_change_bit (int nr, void *addr)
 }
 
 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));
 }