aboutsummaryrefslogtreecommitdiffstats
path: root/lib/find_next_bit.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2011-05-26 19:26:10 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-26 20:12:38 -0400
commit63e424c84429903c92a0f1e9654c31ccaf6694d0 (patch)
tree7a5dbe2587176f3552a71aa18d4cc006bc05261b /lib/find_next_bit.c
parent19de85ef574c3a2182e3ccad9581805052f14946 (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/find_next_bit.c')
-rw-r--r--lib/find_next_bit.c6
1 files changed, 0 insertions, 6 deletions
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}
108EXPORT_SYMBOL(find_next_zero_bit); 107EXPORT_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}
166EXPORT_SYMBOL(find_first_zero_bit); 163EXPORT_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 */
174static inline unsigned long ext2_swabp(const unsigned long * x) 169static inline unsigned long ext2_swabp(const unsigned long * x)
@@ -287,5 +282,4 @@ found_middle_swap:
287EXPORT_SYMBOL(find_next_bit_le); 282EXPORT_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 */