Skip to contentSkip to conversation

bitops: Change the bitmap index from int to unsigned long [h8300]

PATCH Superseded Justin Chen 1 participant 1 message Feb 25, 2009

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 6/15 bitops: Change the bitmap index from int to unsigned long [h8300]

Change the index to unsigned long in all bitops for [h8300]

---
 arch/h8300/include/asm/bitops.h |    8 ++++----
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/h8300/include/asm/bitops.h +4 -4
diff -Nru a/arch/h8300/include/asm/bitops.h b/arch/h8300/include/asm/bitops.h
@@ -43,7 +43,7 @@
 	break;
 
 #define H8300_GEN_BITOP(FNAME,OP)				      \
-static __inline__ void FNAME(int nr, volatile unsigned long* addr)    \
+static __inline__ void FNAME(unsigned long nr, volatile unsigned long* addr) \
 {								      \
 	volatile unsigned char *b_addr;				      \
 	b_addr = (volatile unsigned char *)addr + ((nr >> 3) ^ 3);    \
@@ -79,7 +79,7 @@
 #undef H8300_GEN_BITOP
 #undef H8300_GEN_BITOP_CONST
 
-static __inline__ int test_bit(int nr, const unsigned long* addr)
+static __inline__ int test_bit(unsigned long nr, const unsigned long* addr)
 {
 	return (*((volatile unsigned char *)addr + 
                ((nr >> 3) ^ 3)) & (1UL << (nr & 7))) != 0;
@@ -111,7 +111,7 @@
         break;
 
 #define H8300_GEN_TEST_BITOP(FNNAME,OP)				     \
-static __inline__ int FNNAME(int nr, volatile void * addr)	     \
+static __inline__ int FNNAME(unsigned long nr, volatile void * addr) \
 {								     \
 	int retval = 0;						     \
 	char ccrsave;						     \
@@ -144,7 +144,7 @@
 	return retval;						     \
 }								     \
 								     \
-static __inline__ int __ ## FNNAME(int nr, volatile void * addr)     \
+static __inline__ int __ ## FNNAME(unsigned long nr, volatile void * addr) \
 {								     \
 	int retval = 0;						     \
 	volatile unsigned char *b_addr;				     \