patch-2.4.22 linux-2.4.22/include/asm-ia64/bitops.h

Next file: linux-2.4.22/include/asm-ia64/fpu.h
Previous file: linux-2.4.22/include/asm-ia64/atomic.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/include/asm-ia64/bitops.h linux-2.4.22/include/asm-ia64/bitops.h
@@ -6,7 +6,9 @@
  *	David Mosberger-Tang <davidm@hpl.hp.com>
  */
 
-#include <asm/system.h>
+#include <linux/types.h>
+
+#include <asm/intrinsics.h>
 
 /**
  * set_bit - Atomically set a bit in memory
@@ -258,7 +260,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));
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)