lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200902250451.UAA12871@hpdst41.cup.hp.com>
Date:	Tue, 24 Feb 2009 20:51:40 -0800 (PST)
From:	Justin Chen <jchen@...st41.cup.hp.com>
To:	linux-arch@...r.kernel.org
Cc:	benh@...nel.crashing.org, bjorn.helgaas@...com, justin.chen@...com,
	linux-kernel@...r.kernel.org, paulus@...ba.org
Subject: [PATCH 11/15] bitops: Change the bitmap index from int to unsigned long [powerpc]

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

Signed-off-by: Justin Chen <justin.chen@...com>
Reviewed-by: Bjorn Helgaas <bjorn.helgaas@...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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ