diff options
| author | Akinobu Mita <akinobu.mita@gmail.com> | 2011-05-26 19:26:10 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-26 20:12:38 -0400 |
| commit | 63e424c84429903c92a0f1e9654c31ccaf6694d0 (patch) | |
| tree | 7a5dbe2587176f3552a71aa18d4cc006bc05261b /lib | |
| parent | 19de85ef574c3a2182e3ccad9581805052f14946 (diff) | |
arch: remove CONFIG_GENERIC_FIND_{NEXT_BIT,BIT_LE,LAST_BIT}
By the previous style change, CONFIG_GENERIC_FIND_NEXT_BIT,
CONFIG_GENERIC_FIND_BIT_LE, and CONFIG_GENERIC_FIND_LAST_BIT are not used
to test for existence of find bitops anymore.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Greg Ungerer <gerg@uclinux.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
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/Kconfig | 10 | ||||
| -rw-r--r-- | lib/Makefile | 8 | ||||
| -rw-r--r-- | lib/find_next_bit.c | 6 |
3 files changed, 2 insertions, 22 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index 9c10e38fc609..830181cc7a83 100644 --- a/lib/Kconfig +++ b/lib/Kconfig | |||
| @@ -19,16 +19,6 @@ config RATIONAL | |||
| 19 | config GENERIC_FIND_FIRST_BIT | 19 | config GENERIC_FIND_FIRST_BIT |
| 20 | bool | 20 | bool |
| 21 | 21 | ||
| 22 | config GENERIC_FIND_NEXT_BIT | ||
| 23 | bool | ||
| 24 | |||
| 25 | config GENERIC_FIND_BIT_LE | ||
| 26 | bool | ||
| 27 | |||
| 28 | config GENERIC_FIND_LAST_BIT | ||
| 29 | bool | ||
| 30 | default y | ||
| 31 | |||
| 32 | config CRC_CCITT | 22 | config CRC_CCITT |
| 33 | tristate "CRC-CCITT functions" | 23 | tristate "CRC-CCITT functions" |
| 34 | help | 24 | help |
diff --git a/lib/Makefile b/lib/Makefile index 4b49a249064b..6b597fdb1898 100644 --- a/lib/Makefile +++ b/lib/Makefile | |||
| @@ -12,7 +12,7 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \ | |||
| 12 | idr.o int_sqrt.o extable.o prio_tree.o \ | 12 | idr.o int_sqrt.o extable.o prio_tree.o \ |
| 13 | sha1.o irq_regs.o reciprocal_div.o argv_split.o \ | 13 | sha1.o irq_regs.o reciprocal_div.o argv_split.o \ |
| 14 | proportions.o prio_heap.o ratelimit.o show_mem.o \ | 14 | proportions.o prio_heap.o ratelimit.o show_mem.o \ |
| 15 | is_single_threaded.o plist.o decompress.o | 15 | is_single_threaded.o plist.o decompress.o find_next_bit.o |
| 16 | 16 | ||
| 17 | lib-$(CONFIG_MMU) += ioremap.o | 17 | lib-$(CONFIG_MMU) += ioremap.o |
| 18 | lib-$(CONFIG_SMP) += cpumask.o | 18 | lib-$(CONFIG_SMP) += cpumask.o |
| @@ -22,7 +22,7 @@ lib-y += kobject.o kref.o klist.o | |||
| 22 | obj-y += bcd.o div64.o sort.o parser.o halfmd4.o debug_locks.o random32.o \ | 22 | obj-y += bcd.o div64.o sort.o parser.o halfmd4.o debug_locks.o random32.o \ |
| 23 | bust_spinlocks.o hexdump.o kasprintf.o bitmap.o scatterlist.o \ | 23 | bust_spinlocks.o hexdump.o kasprintf.o bitmap.o scatterlist.o \ |
| 24 | string_helpers.o gcd.o lcm.o list_sort.o uuid.o flex_array.o \ | 24 | string_helpers.o gcd.o lcm.o list_sort.o uuid.o flex_array.o \ |
| 25 | bsearch.o | 25 | bsearch.o find_last_bit.o |
| 26 | obj-y += kstrtox.o | 26 | obj-y += kstrtox.o |
| 27 | obj-$(CONFIG_TEST_KSTRTOX) += test-kstrtox.o | 27 | obj-$(CONFIG_TEST_KSTRTOX) += test-kstrtox.o |
| 28 | 28 | ||
| @@ -39,10 +39,6 @@ obj-$(CONFIG_DEBUG_LOCKING_API_SELFTESTS) += locking-selftest.o | |||
| 39 | obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o | 39 | obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o |
| 40 | lib-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o | 40 | lib-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o |
| 41 | lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o | 41 | lib-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += rwsem.o |
| 42 | lib-$(CONFIG_GENERIC_FIND_FIRST_BIT) += find_next_bit.o | ||
| 43 | lib-$(CONFIG_GENERIC_FIND_NEXT_BIT) += find_next_bit.o | ||
| 44 | lib-$(CONFIG_GENERIC_FIND_BIT_LE) += find_next_bit.o | ||
| 45 | obj-$(CONFIG_GENERIC_FIND_LAST_BIT) += find_last_bit.o | ||
| 46 | 42 | ||
| 47 | CFLAGS_hweight.o = $(subst $(quote),,$(CONFIG_ARCH_HWEIGHT_CFLAGS)) | 43 | CFLAGS_hweight.o = $(subst $(quote),,$(CONFIG_ARCH_HWEIGHT_CFLAGS)) |
| 48 | obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o | 44 | obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o |
diff --git a/lib/find_next_bit.c b/lib/find_next_bit.c index c02d09f37d58..4bd75a73ba00 100644 --- a/lib/find_next_bit.c +++ b/lib/find_next_bit.c | |||
| @@ -16,7 +16,6 @@ | |||
| 16 | 16 | ||
| 17 | #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG) | 17 | #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG) |
| 18 | 18 | ||
| 19 | #ifdef CONFIG_GENERIC_FIND_NEXT_BIT | ||
| 20 | #ifndef find_next_bit | 19 | #ifndef find_next_bit |
| 21 | /* | 20 | /* |
| 22 | * Find the next set bit in a memory region. | 21 | * Find the next set bit in a memory region. |
| @@ -107,9 +106,7 @@ found_middle: | |||
| 107 | } | 106 | } |
| 108 | EXPORT_SYMBOL(find_next_zero_bit); | 107 | EXPORT_SYMBOL(find_next_zero_bit); |
| 109 | #endif | 108 | #endif |
| 110 | #endif /* CONFIG_GENERIC_FIND_NEXT_BIT */ | ||
| 111 | 109 | ||
| 112 | #ifdef CONFIG_GENERIC_FIND_FIRST_BIT | ||
| 113 | #ifndef find_first_bit | 110 | #ifndef find_first_bit |
| 114 | /* | 111 | /* |
| 115 | * Find the first set bit in a memory region. | 112 | * Find the first set bit in a memory region. |
| @@ -165,10 +162,8 @@ found: | |||
| 165 | } | 162 | } |
| 166 | EXPORT_SYMBOL(find_first_zero_bit); | 163 | EXPORT_SYMBOL(find_first_zero_bit); |
| 167 | #endif | 164 | #endif |
| 168 | #endif /* CONFIG_GENERIC_FIND_FIRST_BIT */ | ||
| 169 | 165 | ||
| 170 | #ifdef __BIG_ENDIAN | 166 | #ifdef __BIG_ENDIAN |
| 171 | #ifdef CONFIG_GENERIC_FIND_BIT_LE | ||
| 172 | 167 | ||
| 173 | /* include/linux/byteorder does not support "unsigned long" type */ | 168 | /* include/linux/byteorder does not support "unsigned long" type */ |
| 174 | static inline unsigned long ext2_swabp(const unsigned long * x) | 169 | static inline unsigned long ext2_swabp(const unsigned long * x) |
| @@ -287,5 +282,4 @@ found_middle_swap: | |||
| 287 | EXPORT_SYMBOL(find_next_bit_le); | 282 | EXPORT_SYMBOL(find_next_bit_le); |
| 288 | #endif | 283 | #endif |
| 289 | 284 | ||
| 290 | #endif /* CONFIG_GENERIC_FIND_BIT_LE */ | ||
| 291 | #endif /* __BIG_ENDIAN */ | 285 | #endif /* __BIG_ENDIAN */ |
