patch-1.3.71 linux/include/asm-sparc/bitops.h

Next file: linux/include/asm-sparc/cypress.h
Previous file: linux/include/asm-sparc/auxio.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.70/linux/include/asm-sparc/bitops.h linux/include/asm-sparc/bitops.h
@@ -1,4 +1,4 @@
-/* $Id: bitops.h,v 1.17 1995/11/25 02:31:15 davem Exp $
+/* $Id: bitops.h,v 1.18 1996/01/03 03:53:00 davem Exp $
  * bitops.h: Bit string operations on the Sparc.
  *
  * Copyright 1995, David S. Miller (davem@caip.rutgers.edu).
@@ -67,7 +67,7 @@
 /* The following routine need not be atomic. */
 extern __inline__ unsigned long test_bit(int nr, const void *addr)
 {
-	return 1UL & (((int *) addr)[nr >> 5] >> (nr & 31));
+	return 1UL & (((const unsigned int *) addr)[nr >> 5] >> (nr & 31));
 }
 
 /* The easy/cheese version for now. */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this