* [PATCH 10/15] bitops: Change the bitmap index from int to unsigned long [parisc]
@ 2009-02-25 4:51 Justin Chen
0 siblings, 0 replies; only message in thread
From: Justin Chen @ 2009-02-25 4:51 UTC (permalink / raw)
To: linux-arch
Cc: bjorn.helgaas, grundler, justin.chen, kyle, linux-kernel, matthew
Change the index to unsigned long in all bitops for [parisc]
Signed-off-by: Justin Chen <justin.chen@hp.com>
Reviewed-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
---
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-25 4:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-25 4:51 [PATCH 10/15] bitops: Change the bitmap index from int to unsigned long [parisc] Justin Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®