[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200902250449.UAA12761@hpdst41.cup.hp.com>
Date: Tue, 24 Feb 2009 20:49:03 -0800 (PST)
From: Justin Chen <jchen@...st41.cup.hp.com>
To: linux-arch@...r.kernel.org
Cc: bjorn.helgaas@...com, jesper.nilsson@...s.com, justin.chen@...com,
linux-kernel@...r.kernel.org, starvik@...s.com
Subject: [PATCH 05/15] bitops: Change the bitmap index from int to unsigned long [cris]
Change the index to unsigned long in all bitops for [cris]
Signed-off-by: Justin Chen <justin.chen@...com>
Reviewed-by: Bjorn Helgaas <bjorn.helgaas@...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;
--
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