aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/include/asm/bitops_mm.h
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2011-03-23 19:41:47 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-23 22:46:11 -0400
commitc4945b9ed472e8796e352f10df9dbc2841ba7b61 (patch)
tree6e2fa896f3a153d3bb16e7a07c87620cabf1ebd6 /arch/m68k/include/asm/bitops_mm.h
parent63ab595fb6b34234f116f05f95dc752dd5f8affb (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 'arch/m68k/include/asm/bitops_mm.h')
-rw-r--r--arch/m68k/include/asm/bitops_mm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/m68k/include/asm/bitops_mm.h b/arch/m68k/include/asm/bitops_mm.h
index b4ecdaada52..31a16d47d20 100644
--- a/arch/m68k/include/asm/bitops_mm.h
+++ b/arch/m68k/include/asm/bitops_mm.h
@@ -366,9 +366,9 @@ static inline int minix_test_bit(int nr, const void *vaddr)
366#define ext2_clear_bit(nr, addr) __test_and_clear_bit((nr) ^ 24, (unsigned long *)(addr)) 366#define ext2_clear_bit(nr, addr) __test_and_clear_bit((nr) ^ 24, (unsigned long *)(addr))
367#define ext2_clear_bit_atomic(lock, nr, addr) test_and_clear_bit((nr) ^ 24, (unsigned long *)(addr)) 367#define ext2_clear_bit_atomic(lock, nr, addr) test_and_clear_bit((nr) ^ 24, (unsigned long *)(addr))
368#define ext2_find_next_zero_bit(addr, size, offset) \ 368#define ext2_find_next_zero_bit(addr, size, offset) \
369 generic_find_next_zero_le_bit((unsigned long *)addr, size, offset) 369 find_next_zero_bit_le((unsigned long *)addr, size, offset)
370#define ext2_find_next_bit(addr, size, offset) \ 370#define ext2_find_next_bit(addr, size, offset) \
371 generic_find_next_le_bit((unsigned long *)addr, size, offset) 371 find_next_bit_le((unsigned long *)addr, size, offset)
372 372
373static inline int ext2_test_bit(int nr, const void *vaddr) 373static inline int ext2_test_bit(int nr, const void *vaddr)
374{ 374{
@@ -398,7 +398,7 @@ static inline int ext2_find_first_zero_bit(const void *vaddr, unsigned size)
398 return (p - addr) * 32 + res; 398 return (p - addr) * 32 + res;
399} 399}
400 400
401static inline unsigned long generic_find_next_zero_le_bit(const unsigned long *addr, 401static inline unsigned long find_next_zero_bit_le(const unsigned long *addr,
402 unsigned long size, unsigned long offset) 402 unsigned long size, unsigned long offset)
403{ 403{
404 const unsigned long *p = addr + (offset >> 5); 404 const unsigned long *p = addr + (offset >> 5);
@@ -440,7 +440,7 @@ static inline int ext2_find_first_bit(const void *vaddr, unsigned size)
440 return (p - addr) * 32 + res; 440 return (p - addr) * 32 + res;
441} 441}
442 442
443static inline unsigned long generic_find_next_le_bit(const unsigned long *addr, 443static inline unsigned long find_next_bit_le(const unsigned long *addr,
444 unsigned long size, unsigned long offset) 444 unsigned long size, unsigned long offset)
445{ 445{
446 const unsigned long *p = addr + (offset >> 5); 446 const unsigned long *p = addr + (offset >> 5);