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

From: Justin Chen
Date: Tue Feb 24 2009 - 23:49:38 EST


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

Signed-off-by: Justin Chen <justin.chen@xxxxxx>
Reviewed-by: Bjorn Helgaas <bjorn.helgaas@xxxxxx>
---
arch/parisc/include/asm/bitops.h | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff -Nru a/arch/parisc/include/asm/bitops.h b/arch/parisc/include/asm/bitops.h
--- a/arch/parisc/include/asm/bitops.h 2009-02-13 15:31:30.000000000 -0800
+++ b/arch/parisc/include/asm/bitops.h 2009-02-15 18:19:39.783275397 -0800
@@ -28,7 +28,7 @@
* __*_bit() are "relaxed" and don't use spinlock or volatile.
*/

-static __inline__ void set_bit(int nr, volatile unsigned long * addr)
+static __inline__ void set_bit(unsigned long nr, volatile unsigned long *addr)
{
unsigned long mask = 1UL << CHOP_SHIFTCOUNT(nr);
unsigned long flags;
@@ -39,7 +39,7 @@ static __inline__ void set_bit(int nr, v
_atomic_spin_unlock_irqrestore(addr, flags);
}

-static __inline__ void clear_bit(int nr, volatile unsigned long * addr)
+static __inline__ void clear_bit(unsigned long nr, volatile unsigned long *addr)
{
unsigned long mask = ~(1UL << CHOP_SHIFTCOUNT(nr));
unsigned long flags;
@@ -50,7 +50,8 @@ static __inline__ void clear_bit(int nr,
_atomic_spin_unlock_irqrestore(addr, flags);
}

-static __inline__ void change_bit(int nr, volatile unsigned long * addr)
+static __inline__ void
+change_bit(unsigned long nr, volatile unsigned long *addr)
{
unsigned long mask = 1UL << CHOP_SHIFTCOUNT(nr);
unsigned long flags;
@@ -61,7 +62,8 @@ static __inline__ void change_bit(int nr
_atomic_spin_unlock_irqrestore(addr, flags);
}

-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 long mask = 1UL << CHOP_SHIFTCOUNT(nr);
unsigned long old;
@@ -79,7 +81,8 @@ static __inline__ int test_and_set_bit(i
return set;
}

-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 long mask = 1UL << CHOP_SHIFTCOUNT(nr);
unsigned long old;
@@ -97,7 +100,8 @@ static __inline__ int test_and_clear_bit
return set;
}

-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 long mask = 1UL << CHOP_SHIFTCOUNT(nr);
unsigned long oldbit;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/