X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=arch%2Fmn10300%2Flib%2Fbitops.c;h=a66c6cdaf4424974de52cbc97583b294691e0d12;hb=29c798fecb9b846b363b0a02fa662ff42fc19426;hp=440a7dcbf87b52afb443451b5973d9ad16e48116;hpb=0a3abcf75bf391fec4e32356ab5ddb8f5d2e6b41;p=~andy%2Flinux diff --git a/arch/mn10300/lib/bitops.c b/arch/mn10300/lib/bitops.c index 440a7dcbf87..a66c6cdaf44 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;