* [PATCH 05/15] bitops: Change the bitmap index from int to unsigned long [cris]
@ 2009-02-25 4:49 Justin Chen
0 siblings, 0 replies; only message in thread
From: Justin Chen @ 2009-02-25 4:49 UTC (permalink / raw)
To: linux-arch
Cc: bjorn.helgaas, jesper.nilsson, justin.chen, linux-kernel, starvik
Change the index to unsigned long in all bitops for [cris]
Signed-off-by: Justin Chen <justin.chen@hp.com>
Reviewed-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
---
arch/cris/include/asm/bitops.h | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff -Nru a/arch/cris/include/asm/bitops.h b/arch/cris/include/asm/bitops.h
--- a/arch/cris/include/asm/bitops.h 2009-02-13 15:31:30.000000000 -0800
+++ b/arch/cris/include/asm/bitops.h 2009-02-15 18:19:39.771556647 -0800
@@ -70,7 +70,8 @@
* It also implies a memory barrier.
*/
-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 int mask, retval;
unsigned long flags;
@@ -100,7 +101,8 @@
* It also implies a memory barrier.
*/
-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 int mask, retval;
unsigned long flags;
@@ -124,7 +126,8 @@
* It also implies a memory barrier.
*/
-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 int mask, retval;
unsigned long flags;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-25 4:47 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:49 [PATCH 05/15] bitops: Change the bitmap index from int to unsigned long [cris] 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®