summaryrefslogtreecommitdiff
path: root/arch/mn10300/lib
diff options
context:
space:
mode:
authorJustin Chen <jchen@hpdst41.cup.hp.com>2010-10-27 17:28:34 +0100
committerDavid Howells <dhowells@redhat.com>2010-10-27 17:28:34 +0100
commite4acfcac0f3e3b575bb1819052b91b579988c59b (patch)
treede267f238ac2847483224b859fe013ca40eb6d6c /arch/mn10300/lib
parent292aa141277b142148d15bf28104f8890616e291 (diff)
bitops: Change the bitmap index from int to unsigned long [mn10300]
Change the index to unsigned long in all bitops for [mn10300] Signed-off-by: Justin Chen <justin.chen@hp.com> Reviewed-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/mn10300/lib')
-rw-r--r--arch/mn10300/lib/bitops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mn10300/lib/bitops.c b/arch/mn10300/lib/bitops.c
index 440a7dcbf87b..a66c6cdaf442 100644
--- a/arch/mn10300/lib/bitops.c
+++ b/arch/mn10300/lib/bitops.c
@@ -15,7 +15,7 @@
/*
* try flipping a bit using BSET and BCLR
*/
-void change_bit(int nr, volatile void *addr)
+void change_bit(unsigned long nr, volatile void *addr)
{
if (test_bit(nr, addr))
goto try_clear_bit;
@@ -34,7 +34,7 @@ try_clear_bit:
/*
* try flipping a bit using BSET and BCLR and returning the old value
*/
-int test_and_change_bit(int nr, volatile void *addr)
+int test_and_change_bit(unsigned long nr, volatile void *addr)
{
if (test_bit(nr, addr))
goto try_clear_bit;