[PATCH 05/15] bitops: Change the bitmap index from int to unsigned long [cris]

From: Justin Chen
Date: Tue Feb 24 2009 - 23:47:18 EST


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

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