[PATCH] bitop warnings

From: Bob Picco <bob.picco_at_hp.com>
Date: 2005-01-22 09:58:08
Hi Tony:

I don't believe this has been submitted.  It removes many compiler warnings.

thanks,

bob

Signed-off-by: Bob Picco <bob.picco@hp.com>

diff -ruNp -X /home/picco/losl/dontdiff linux-2.6.11-rc1-mm1-mhp1-orig/arch/ia64/lib/bitop.c linux-2.6.11-rc1-mm1-mhp1/arch/ia64/lib/bitop.c
--- linux-2.6.11-rc1-mm1-mhp1-orig/arch/ia64/lib/bitop.c	2004-12-24 16:35:24.000000000 -0500
+++ linux-2.6.11-rc1-mm1-mhp1/arch/ia64/lib/bitop.c	2005-01-20 15:49:15.000000000 -0500
@@ -8,7 +8,7 @@
  * Find next zero bit in a bitmap reasonably efficiently..
  */
 
-int __find_next_zero_bit (void *addr, unsigned long size, unsigned long offset)
+int __find_next_zero_bit (const void *addr, unsigned long size, unsigned long offset)
 {
 	unsigned long *p = ((unsigned long *) addr) + (offset >> 6);
 	unsigned long result = offset & ~63UL;
diff -ruNp -X /home/picco/losl/dontdiff linux-2.6.11-rc1-mm1-mhp1-orig/include/asm-ia64/bitops.h linux-2.6.11-rc1-mm1-mhp1/include/asm-ia64/bitops.h
--- linux-2.6.11-rc1-mm1-mhp1-orig/include/asm-ia64/bitops.h	2004-12-24 16:35:28.000000000 -0500
+++ linux-2.6.11-rc1-mm1-mhp1/include/asm-ia64/bitops.h	2005-01-20 15:26:48.000000000 -0500
@@ -359,7 +359,7 @@ hweight64 (unsigned long x)
 
 #endif /* __KERNEL__ */
 
-extern int __find_next_zero_bit (void *addr, unsigned long size,
+extern int __find_next_zero_bit (const void *addr, unsigned long size,
 			unsigned long offset);
 extern int __find_next_bit(const void *addr, unsigned long size,
 			unsigned long offset);
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Jan 21 16:50:59 2005

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