lkml.org 
[lkml]   [2009]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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@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;

\
 
 \ /
  Last update: 2009-02-25 05:49    [W:0.034 / U:1.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site