diff options
author | Justin Chen <jchen@hpdst41.cup.hp.com> | 2010-10-27 12:28:34 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2010-10-27 12:28:34 -0400 |
commit | e4acfcac0f3e3b575bb1819052b91b579988c59b (patch) | |
tree | de267f238ac2847483224b859fe013ca40eb6d6c /arch/mn10300/lib/bitops.c | |
parent | 292aa141277b142148d15bf28104f8890616e291 (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/bitops.c')
-rw-r--r-- | arch/mn10300/lib/bitops.c | 4 |
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 @@ | |||
15 | /* | 15 | /* |
16 | * try flipping a bit using BSET and BCLR | 16 | * try flipping a bit using BSET and BCLR |
17 | */ | 17 | */ |
18 | void change_bit(int nr, volatile void *addr) | 18 | void change_bit(unsigned long nr, volatile void *addr) |
19 | { | 19 | { |
20 | if (test_bit(nr, addr)) | 20 | if (test_bit(nr, addr)) |
21 | goto try_clear_bit; | 21 | goto try_clear_bit; |
@@ -34,7 +34,7 @@ try_clear_bit: | |||
34 | /* | 34 | /* |
35 | * try flipping a bit using BSET and BCLR and returning the old value | 35 | * try flipping a bit using BSET and BCLR and returning the old value |
36 | */ | 36 | */ |
37 | int test_and_change_bit(int nr, volatile void *addr) | 37 | int test_and_change_bit(unsigned long nr, volatile void *addr) |
38 | { | 38 | { |
39 | if (test_bit(nr, addr)) | 39 | if (test_bit(nr, addr)) |
40 | goto try_clear_bit; | 40 | goto try_clear_bit; |