Skip to contentSkip to conversation

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

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 5/15 bitops: Change the bitmap index from int to unsigned long [cris]

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

---
 arch/cris/include/asm/bitops.h |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
arch/cris/include/asm/bitops.h +6 -3
diff -Nru a/arch/cris/include/asm/bitops.h b/arch/cris/include/asm/bitops.h
@@ -70,7 +70,8 @@
  * It also implies a memory barrier.
  */
 
-static inline int test_and_set_bit(int nr, volatile unsigned long *addr)
+static inline int
+test_and_set_bit(unsigned long nr, volatile unsigned long *addr)
 {
 	unsigned int mask, retval;
 	unsigned long flags;
@@ -100,7 +101,8 @@
  * It also implies a memory barrier.
  */
 
-static inline int test_and_clear_bit(int nr, volatile unsigned long *addr)
+static inline int
+test_and_clear_bit(unsigned long nr, volatile unsigned long *addr)
 {
 	unsigned int mask, retval;
 	unsigned long flags;
@@ -124,7 +126,8 @@
  * It also implies a memory barrier.
  */
 
-static inline int test_and_change_bit(int nr, volatile unsigned long *addr)
+static inline int
+test_and_change_bit(unsigned long nr, volatile unsigned long *addr)
 {
 	unsigned int mask, retval;
 	unsigned long flags;