Change the index to unsigned long in all bitops for [powerpc] Signed-off-by: Justin Chen <justin.chen@xxxxxx> Reviewed-by: Bjorn Helgaas <bjorn.helgaas@xxxxxx> --- 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); -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html