mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 11/15] bitops: Change the bitmap index from int to unsigned long [powerpc]
@ 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: benh, bjorn.helgaas, justin.chen, linux-kernel, paulus

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

Signed-off-by: Justin Chen <justin.chen@hp.com>
Reviewed-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
---
 arch/powerpc/include/asm/bitops.h |   14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
diff -Nru a/arch/powerpc/include/asm/bitops.h b/arch/powerpc/include/asm/bitops.h
--- a/arch/powerpc/include/asm/bitops.h	2009-02-13 15:31:30.000000000 -0800
+++ b/arch/powerpc/include/asm/bitops.h	2009-02-15 18:19:39.784251959 -0800
@@ -56,7 +56,7 @@
 #define BITOP_WORD(nr)		((nr) / BITS_PER_LONG)
 #define BITOP_LE_SWIZZLE	((BITS_PER_LONG-1) & ~0x7)
 
-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 old;
 	unsigned long mask = BITOP_MASK(nr);
@@ -73,7 +73,8 @@
 	: "cc" );
 }
 
-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 old;
 	unsigned long mask = BITOP_MASK(nr);
@@ -90,7 +91,8 @@
 	: "cc" );
 }
 
-static __inline__ void clear_bit_unlock(int nr, volatile unsigned long *addr)
+static __inline__ void
+clear_bit_unlock(unsigned long nr, volatile unsigned long *addr)
 {
 	unsigned long old;
 	unsigned long mask = BITOP_MASK(nr);
@@ -108,7 +110,8 @@
 	: "cc", "memory");
 }
 
-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 old;
 	unsigned long mask = BITOP_MASK(nr);
@@ -228,7 +231,8 @@
 
 #include <asm-generic/bitops/non-atomic.h>
 
-static __inline__ void __clear_bit_unlock(int nr, volatile unsigned long *addr)
+static __inline__ void
+__clear_bit_unlock(unsigned long nr, volatile unsigned long *addr)
 {
 	__asm__ __volatile__(LWSYNC_ON_SMP "" ::: "memory");
 	__clear_bit(nr, addr);

^ 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 11/15] bitops: Change the bitmap index from int to unsigned long [powerpc] 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®