bitops: Change the bitmap index from int to unsigned long [mn10300]
[pandora-kernel.git] / arch / mn10300 / lib / bitops.c
index 440a7dc..a66c6cd 100644 (file)
@@ -15,7 +15,7 @@
 /*
  * try flipping a bit using BSET and BCLR
  */
-void change_bit(int nr, volatile void *addr)
+void change_bit(unsigned long nr, volatile void *addr)
 {
        if (test_bit(nr, addr))
                goto try_clear_bit;
@@ -34,7 +34,7 @@ try_clear_bit:
 /*
  * try flipping a bit using BSET and BCLR and returning the old value
  */
-int test_and_change_bit(int nr, volatile void *addr)
+int test_and_change_bit(unsigned long nr, volatile void *addr)
 {
        if (test_bit(nr, addr))
                goto try_clear_bit;