aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-generic/bitops/find.h14
-rw-r--r--include/linux/bitops.h23
2 files changed, 12 insertions, 25 deletions
diff --git a/include/asm-generic/bitops/find.h b/include/asm-generic/bitops/find.h
index 30afec0db7d7..110fa700f853 100644
--- a/include/asm-generic/bitops/find.h
+++ b/include/asm-generic/bitops/find.h
@@ -1,13 +1,23 @@
1#ifndef _ASM_GENERIC_BITOPS_FIND_H_ 1#ifndef _ASM_GENERIC_BITOPS_FIND_H_
2#define _ASM_GENERIC_BITOPS_FIND_H_ 2#define _ASM_GENERIC_BITOPS_FIND_H_
3 3
4#ifndef CONFIG_GENERIC_FIND_NEXT_BIT 4/**
5 * find_next_bit - find the next set bit in a memory region
6 * @addr: The address to base the search on
7 * @offset: The bitnumber to start searching at
8 * @size: The bitmap size in bits
9 */
5extern unsigned long find_next_bit(const unsigned long *addr, unsigned long 10extern unsigned long find_next_bit(const unsigned long *addr, unsigned long
6 size, unsigned long offset); 11 size, unsigned long offset);
7 12
13/**
14 * find_next_zero_bit - find the next cleared bit in a memory region
15 * @addr: The address to base the search on
16 * @offset: The bitnumber to start searching at
17 * @size: The bitmap size in bits
18 */
8extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned 19extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned
9 long size, unsigned long offset); 20 long size, unsigned long offset);
10#endif
11 21
12#ifdef CONFIG_GENERIC_FIND_FIRST_BIT 22#ifdef CONFIG_GENERIC_FIND_FIRST_BIT
13 23
diff --git a/include/linux/bitops.h b/include/linux/bitops.h
index adb0f113f571..827cc95711ef 100644
--- a/include/linux/bitops.h
+++ b/include/linux/bitops.h
@@ -149,28 +149,5 @@ extern unsigned long find_last_bit(const unsigned long *addr,
149 unsigned long size); 149 unsigned long size);
150#endif /* CONFIG_GENERIC_FIND_LAST_BIT */ 150#endif /* CONFIG_GENERIC_FIND_LAST_BIT */
151 151
152#ifdef CONFIG_GENERIC_FIND_NEXT_BIT
153
154/**
155 * find_next_bit - find the next set bit in a memory region
156 * @addr: The address to base the search on
157 * @offset: The bitnumber to start searching at
158 * @size: The bitmap size in bits
159 */
160extern unsigned long find_next_bit(const unsigned long *addr,
161 unsigned long size, unsigned long offset);
162
163/**
164 * find_next_zero_bit - find the next cleared bit in a memory region
165 * @addr: The address to base the search on
166 * @offset: The bitnumber to start searching at
167 * @size: The bitmap size in bits
168 */
169
170extern unsigned long find_next_zero_bit(const unsigned long *addr,
171 unsigned long size,
172 unsigned long offset);
173
174#endif /* CONFIG_GENERIC_FIND_NEXT_BIT */
175#endif /* __KERNEL__ */ 152#endif /* __KERNEL__ */
176#endif 153#endif