diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/bitops.h | 6 | ||||
-rw-r--r-- | include/asm-x86/bitops_32.h | 16 | ||||
-rw-r--r-- | include/asm-x86/bitops_64.h | 2 |
3 files changed, 6 insertions, 18 deletions
diff --git a/include/asm-x86/bitops.h b/include/asm-x86/bitops.h index 1ae7b270a1ef..31e408de90c6 100644 --- a/include/asm-x86/bitops.h +++ b/include/asm-x86/bitops.h | |||
@@ -306,6 +306,12 @@ static int test_bit(int nr, const volatile unsigned long *addr); | |||
306 | #undef BIT_ADDR | 306 | #undef BIT_ADDR |
307 | #undef ADDR | 307 | #undef ADDR |
308 | 308 | ||
309 | unsigned long find_next_bit(const unsigned long *addr, | ||
310 | unsigned long size, unsigned long offset); | ||
311 | unsigned long find_next_zero_bit(const unsigned long *addr, | ||
312 | unsigned long size, unsigned long offset); | ||
313 | |||
314 | |||
309 | #ifdef CONFIG_X86_32 | 315 | #ifdef CONFIG_X86_32 |
310 | # include "bitops_32.h" | 316 | # include "bitops_32.h" |
311 | #else | 317 | #else |
diff --git a/include/asm-x86/bitops_32.h b/include/asm-x86/bitops_32.h index 2513a81f82aa..7c9ed759afb2 100644 --- a/include/asm-x86/bitops_32.h +++ b/include/asm-x86/bitops_32.h | |||
@@ -40,14 +40,6 @@ static inline int find_first_zero_bit(const unsigned long *addr, unsigned size) | |||
40 | } | 40 | } |
41 | 41 | ||
42 | /** | 42 | /** |
43 | * find_next_zero_bit - find the first zero bit in a memory region | ||
44 | * @addr: The address to base the search on | ||
45 | * @offset: The bit number to start searching at | ||
46 | * @size: The maximum size to search | ||
47 | */ | ||
48 | int find_next_zero_bit(const unsigned long *addr, int size, int offset); | ||
49 | |||
50 | /** | ||
51 | * __ffs - find first bit in word. | 43 | * __ffs - find first bit in word. |
52 | * @word: The word to search | 44 | * @word: The word to search |
53 | * | 45 | * |
@@ -83,14 +75,6 @@ static inline unsigned find_first_bit(const unsigned long *addr, unsigned size) | |||
83 | } | 75 | } |
84 | 76 | ||
85 | /** | 77 | /** |
86 | * find_next_bit - find the first set bit in a memory region | ||
87 | * @addr: The address to base the search on | ||
88 | * @offset: The bit number to start searching at | ||
89 | * @size: The maximum size to search | ||
90 | */ | ||
91 | int find_next_bit(const unsigned long *addr, int size, int offset); | ||
92 | |||
93 | /** | ||
94 | * ffz - find first zero in word. | 78 | * ffz - find first zero in word. |
95 | * @word: The word to search | 79 | * @word: The word to search |
96 | * | 80 | * |
diff --git a/include/asm-x86/bitops_64.h b/include/asm-x86/bitops_64.h index 365f8207ea59..65b20fb2ae78 100644 --- a/include/asm-x86/bitops_64.h +++ b/include/asm-x86/bitops_64.h | |||
@@ -6,9 +6,7 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | extern long find_first_zero_bit(const unsigned long *addr, unsigned long size); | 8 | extern long find_first_zero_bit(const unsigned long *addr, unsigned long size); |
9 | extern long find_next_zero_bit(const unsigned long *addr, long size, long offset); | ||
10 | extern long find_first_bit(const unsigned long *addr, unsigned long size); | 9 | extern long find_first_bit(const unsigned long *addr, unsigned long size); |
11 | extern long find_next_bit(const unsigned long *addr, long size, long offset); | ||
12 | 10 | ||
13 | /* return index of first bet set in val or max when no bit is set */ | 11 | /* return index of first bet set in val or max when no bit is set */ |
14 | static inline long __scanbit(unsigned long val, unsigned long max) | 12 | static inline long __scanbit(unsigned long val, unsigned long max) |