diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2011-03-23 19:41:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-23 22:46:11 -0400 |
commit | c4945b9ed472e8796e352f10df9dbc2841ba7b61 (patch) | |
tree | 6e2fa896f3a153d3bb16e7a07c87620cabf1ebd6 /lib | |
parent | 63ab595fb6b34234f116f05f95dc752dd5f8affb (diff) |
asm-generic: rename generic little-endian bitops functions
As a preparation for providing little-endian bitops for all architectures,
This renames generic implementation of little-endian bitops. (remove
"generic_" prefix and postfix "_le")
s/generic_find_next_le_bit/find_next_bit_le/
s/generic_find_next_zero_le_bit/find_next_zero_bit_le/
s/generic_find_first_zero_le_bit/find_first_zero_bit_le/
s/generic___test_and_set_le_bit/__test_and_set_bit_le/
s/generic___test_and_clear_le_bit/__test_and_clear_bit_le/
s/generic_test_le_bit/test_bit_le/
s/generic___set_le_bit/__set_bit_le/
s/generic___clear_le_bit/__clear_bit_le/
s/generic_test_and_set_le_bit/test_and_set_bit_le/
s/generic_test_and_clear_le_bit/test_and_clear_bit_le/
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Cc: Greg Ungerer <gerg@uclinux.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/find_next_bit.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/find_next_bit.c b/lib/find_next_bit.c index 24c59ded47a0..c093ba988003 100644 --- a/lib/find_next_bit.c +++ b/lib/find_next_bit.c | |||
@@ -185,7 +185,7 @@ static inline unsigned long ext2_swab(const unsigned long y) | |||
185 | #endif | 185 | #endif |
186 | } | 186 | } |
187 | 187 | ||
188 | unsigned long generic_find_next_zero_le_bit(const unsigned long *addr, unsigned | 188 | unsigned long find_next_zero_bit_le(const unsigned long *addr, unsigned |
189 | long size, unsigned long offset) | 189 | long size, unsigned long offset) |
190 | { | 190 | { |
191 | const unsigned long *p = addr + BITOP_WORD(offset); | 191 | const unsigned long *p = addr + BITOP_WORD(offset); |
@@ -226,10 +226,9 @@ found_middle: | |||
226 | found_middle_swap: | 226 | found_middle_swap: |
227 | return result + ffz(ext2_swab(tmp)); | 227 | return result + ffz(ext2_swab(tmp)); |
228 | } | 228 | } |
229 | EXPORT_SYMBOL(find_next_zero_bit_le); | ||
229 | 230 | ||
230 | EXPORT_SYMBOL(generic_find_next_zero_le_bit); | 231 | unsigned long find_next_bit_le(const unsigned long *addr, unsigned |
231 | |||
232 | unsigned long generic_find_next_le_bit(const unsigned long *addr, unsigned | ||
233 | long size, unsigned long offset) | 232 | long size, unsigned long offset) |
234 | { | 233 | { |
235 | const unsigned long *p = addr + BITOP_WORD(offset); | 234 | const unsigned long *p = addr + BITOP_WORD(offset); |
@@ -271,5 +270,5 @@ found_middle: | |||
271 | found_middle_swap: | 270 | found_middle_swap: |
272 | return result + __ffs(ext2_swab(tmp)); | 271 | return result + __ffs(ext2_swab(tmp)); |
273 | } | 272 | } |
274 | EXPORT_SYMBOL(generic_find_next_le_bit); | 273 | EXPORT_SYMBOL(find_next_bit_le); |
275 | #endif /* __BIG_ENDIAN */ | 274 | #endif /* __BIG_ENDIAN */ |