diff options
-rw-r--r-- | arch/avr32/kernel/avr32_ksyms.c | 4 | ||||
-rw-r--r-- | arch/avr32/lib/findbit.S | 4 | ||||
-rw-r--r-- | arch/m68k/include/asm/bitops_mm.h | 8 | ||||
-rw-r--r-- | arch/m68k/include/asm/bitops_no.h | 2 | ||||
-rw-r--r-- | arch/powerpc/include/asm/bitops.h | 15 | ||||
-rw-r--r-- | include/asm-generic/bitops/ext2-non-atomic.h | 12 | ||||
-rw-r--r-- | include/asm-generic/bitops/le.h | 28 | ||||
-rw-r--r-- | include/asm-generic/bitops/minix-le.h | 10 | ||||
-rw-r--r-- | lib/find_next_bit.c | 9 |
9 files changed, 46 insertions, 46 deletions
diff --git a/arch/avr32/kernel/avr32_ksyms.c b/arch/avr32/kernel/avr32_ksyms.c index 11e310c567a9..d93ead02daed 100644 --- a/arch/avr32/kernel/avr32_ksyms.c +++ b/arch/avr32/kernel/avr32_ksyms.c | |||
@@ -58,8 +58,8 @@ EXPORT_SYMBOL(find_first_zero_bit); | |||
58 | EXPORT_SYMBOL(find_next_zero_bit); | 58 | EXPORT_SYMBOL(find_next_zero_bit); |
59 | EXPORT_SYMBOL(find_first_bit); | 59 | EXPORT_SYMBOL(find_first_bit); |
60 | EXPORT_SYMBOL(find_next_bit); | 60 | EXPORT_SYMBOL(find_next_bit); |
61 | EXPORT_SYMBOL(generic_find_next_le_bit); | 61 | EXPORT_SYMBOL(find_next_bit_le); |
62 | EXPORT_SYMBOL(generic_find_next_zero_le_bit); | 62 | EXPORT_SYMBOL(find_next_zero_bit_le); |
63 | 63 | ||
64 | /* I/O primitives (lib/io-*.S) */ | 64 | /* I/O primitives (lib/io-*.S) */ |
65 | EXPORT_SYMBOL(__raw_readsb); | 65 | EXPORT_SYMBOL(__raw_readsb); |
diff --git a/arch/avr32/lib/findbit.S b/arch/avr32/lib/findbit.S index 997b33b2288a..b93586460be6 100644 --- a/arch/avr32/lib/findbit.S +++ b/arch/avr32/lib/findbit.S | |||
@@ -123,7 +123,7 @@ ENTRY(find_next_bit) | |||
123 | brgt 1b | 123 | brgt 1b |
124 | retal r11 | 124 | retal r11 |
125 | 125 | ||
126 | ENTRY(generic_find_next_le_bit) | 126 | ENTRY(find_next_bit_le) |
127 | lsr r8, r10, 5 | 127 | lsr r8, r10, 5 |
128 | sub r9, r11, r10 | 128 | sub r9, r11, r10 |
129 | retle r11 | 129 | retle r11 |
@@ -153,7 +153,7 @@ ENTRY(generic_find_next_le_bit) | |||
153 | brgt 1b | 153 | brgt 1b |
154 | retal r11 | 154 | retal r11 |
155 | 155 | ||
156 | ENTRY(generic_find_next_zero_le_bit) | 156 | ENTRY(find_next_zero_bit_le) |
157 | lsr r8, r10, 5 | 157 | lsr r8, r10, 5 |
158 | sub r9, r11, r10 | 158 | sub r9, r11, r10 |
159 | retle r11 | 159 | retle r11 |
diff --git a/arch/m68k/include/asm/bitops_mm.h b/arch/m68k/include/asm/bitops_mm.h index b4ecdaada520..31a16d47d205 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 | ||
373 | static inline int ext2_test_bit(int nr, const void *vaddr) | 373 | static 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 | ||
401 | static inline unsigned long generic_find_next_zero_le_bit(const unsigned long *addr, | 401 | static 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 | ||
443 | static inline unsigned long generic_find_next_le_bit(const unsigned long *addr, | 443 | static 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); |
diff --git a/arch/m68k/include/asm/bitops_no.h b/arch/m68k/include/asm/bitops_no.h index 9d3cbe5fad1e..58c67aaf91e2 100644 --- a/arch/m68k/include/asm/bitops_no.h +++ b/arch/m68k/include/asm/bitops_no.h | |||
@@ -325,7 +325,7 @@ found_middle: | |||
325 | } | 325 | } |
326 | 326 | ||
327 | #define ext2_find_next_bit(addr, size, off) \ | 327 | #define ext2_find_next_bit(addr, size, off) \ |
328 | generic_find_next_le_bit((unsigned long *)(addr), (size), (off)) | 328 | find_next_bit_le((unsigned long *)(addr), (size), (off)) |
329 | #include <asm-generic/bitops/minix.h> | 329 | #include <asm-generic/bitops/minix.h> |
330 | 330 | ||
331 | #endif /* __KERNEL__ */ | 331 | #endif /* __KERNEL__ */ |
diff --git a/arch/powerpc/include/asm/bitops.h b/arch/powerpc/include/asm/bitops.h index 8a7e9314c68a..97aacbdd752a 100644 --- a/arch/powerpc/include/asm/bitops.h +++ b/arch/powerpc/include/asm/bitops.h | |||
@@ -303,11 +303,12 @@ static __inline__ int test_le_bit(unsigned long nr, | |||
303 | #define __test_and_clear_le_bit(nr, addr) \ | 303 | #define __test_and_clear_le_bit(nr, addr) \ |
304 | __test_and_clear_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 304 | __test_and_clear_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
305 | 305 | ||
306 | #define find_first_zero_le_bit(addr, size) generic_find_next_zero_le_bit((addr), (size), 0) | 306 | #define find_first_zero_bit_le(addr, size) \ |
307 | unsigned long generic_find_next_zero_le_bit(const unsigned long *addr, | 307 | find_next_zero_bit_le((addr), (size), 0) |
308 | unsigned long find_next_zero_bit_le(const unsigned long *addr, | ||
308 | unsigned long size, unsigned long offset); | 309 | unsigned long size, unsigned long offset); |
309 | 310 | ||
310 | unsigned long generic_find_next_le_bit(const unsigned long *addr, | 311 | unsigned long find_next_bit_le(const unsigned long *addr, |
311 | unsigned long size, unsigned long offset); | 312 | unsigned long size, unsigned long offset); |
312 | /* Bitmap functions for the ext2 filesystem */ | 313 | /* Bitmap functions for the ext2 filesystem */ |
313 | 314 | ||
@@ -324,12 +325,12 @@ unsigned long generic_find_next_le_bit(const unsigned long *addr, | |||
324 | #define ext2_test_bit(nr, addr) test_le_bit((nr),(unsigned long*)addr) | 325 | #define ext2_test_bit(nr, addr) test_le_bit((nr),(unsigned long*)addr) |
325 | 326 | ||
326 | #define ext2_find_first_zero_bit(addr, size) \ | 327 | #define ext2_find_first_zero_bit(addr, size) \ |
327 | find_first_zero_le_bit((unsigned long*)addr, size) | 328 | find_first_zero_bit_le((unsigned long*)addr, size) |
328 | #define ext2_find_next_zero_bit(addr, size, off) \ | 329 | #define ext2_find_next_zero_bit(addr, size, off) \ |
329 | generic_find_next_zero_le_bit((unsigned long*)addr, size, off) | 330 | find_next_zero_bit_le((unsigned long *)addr, size, off) |
330 | 331 | ||
331 | #define ext2_find_next_bit(addr, size, off) \ | 332 | #define ext2_find_next_bit(addr, size, off) \ |
332 | generic_find_next_le_bit((unsigned long *)addr, size, off) | 333 | find_next_bit_le((unsigned long *)addr, size, off) |
333 | /* Bitmap functions for the minix filesystem. */ | 334 | /* Bitmap functions for the minix filesystem. */ |
334 | 335 | ||
335 | #define minix_test_and_set_bit(nr,addr) \ | 336 | #define minix_test_and_set_bit(nr,addr) \ |
@@ -342,7 +343,7 @@ unsigned long generic_find_next_le_bit(const unsigned long *addr, | |||
342 | test_le_bit(nr, (unsigned long *)addr) | 343 | test_le_bit(nr, (unsigned long *)addr) |
343 | 344 | ||
344 | #define minix_find_first_zero_bit(addr,size) \ | 345 | #define minix_find_first_zero_bit(addr,size) \ |
345 | find_first_zero_le_bit((unsigned long *)addr, size) | 346 | find_first_zero_bit_le((unsigned long *)addr, size) |
346 | 347 | ||
347 | #include <asm-generic/bitops/sched.h> | 348 | #include <asm-generic/bitops/sched.h> |
348 | 349 | ||
diff --git a/include/asm-generic/bitops/ext2-non-atomic.h b/include/asm-generic/bitops/ext2-non-atomic.h index 63cf822431a2..ba27bbe755a2 100644 --- a/include/asm-generic/bitops/ext2-non-atomic.h +++ b/include/asm-generic/bitops/ext2-non-atomic.h | |||
@@ -4,17 +4,17 @@ | |||
4 | #include <asm-generic/bitops/le.h> | 4 | #include <asm-generic/bitops/le.h> |
5 | 5 | ||
6 | #define ext2_set_bit(nr,addr) \ | 6 | #define ext2_set_bit(nr,addr) \ |
7 | generic___test_and_set_le_bit((nr),(unsigned long *)(addr)) | 7 | __test_and_set_bit_le((nr), (unsigned long *)(addr)) |
8 | #define ext2_clear_bit(nr,addr) \ | 8 | #define ext2_clear_bit(nr,addr) \ |
9 | generic___test_and_clear_le_bit((nr),(unsigned long *)(addr)) | 9 | __test_and_clear_bit_le((nr), (unsigned long *)(addr)) |
10 | 10 | ||
11 | #define ext2_test_bit(nr,addr) \ | 11 | #define ext2_test_bit(nr,addr) \ |
12 | generic_test_le_bit((nr),(unsigned long *)(addr)) | 12 | test_bit_le((nr), (unsigned long *)(addr)) |
13 | #define ext2_find_first_zero_bit(addr, size) \ | 13 | #define ext2_find_first_zero_bit(addr, size) \ |
14 | generic_find_first_zero_le_bit((unsigned long *)(addr), (size)) | 14 | find_first_zero_bit_le((unsigned long *)(addr), (size)) |
15 | #define ext2_find_next_zero_bit(addr, size, off) \ | 15 | #define ext2_find_next_zero_bit(addr, size, off) \ |
16 | generic_find_next_zero_le_bit((unsigned long *)(addr), (size), (off)) | 16 | find_next_zero_bit_le((unsigned long *)(addr), (size), (off)) |
17 | #define ext2_find_next_bit(addr, size, off) \ | 17 | #define ext2_find_next_bit(addr, size, off) \ |
18 | generic_find_next_le_bit((unsigned long *)(addr), (size), (off)) | 18 | find_next_bit_le((unsigned long *)(addr), (size), (off)) |
19 | 19 | ||
20 | #endif /* _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_ */ | 20 | #endif /* _ASM_GENERIC_BITOPS_EXT2_NON_ATOMIC_H_ */ |
diff --git a/include/asm-generic/bitops/le.h b/include/asm-generic/bitops/le.h index 9085429ff3ca..394ac3ebcbde 100644 --- a/include/asm-generic/bitops/le.h +++ b/include/asm-generic/bitops/le.h | |||
@@ -8,44 +8,44 @@ | |||
8 | 8 | ||
9 | #define BITOP_LE_SWIZZLE 0 | 9 | #define BITOP_LE_SWIZZLE 0 |
10 | 10 | ||
11 | #define generic_find_next_zero_le_bit(addr, size, offset) \ | 11 | #define find_next_zero_bit_le(addr, size, offset) \ |
12 | find_next_zero_bit(addr, size, offset) | 12 | find_next_zero_bit(addr, size, offset) |
13 | #define generic_find_next_le_bit(addr, size, offset) \ | 13 | #define find_next_bit_le(addr, size, offset) \ |
14 | find_next_bit(addr, size, offset) | 14 | find_next_bit(addr, size, offset) |
15 | #define generic_find_first_zero_le_bit(addr, size) \ | 15 | #define find_first_zero_bit_le(addr, size) \ |
16 | find_first_zero_bit(addr, size) | 16 | find_first_zero_bit(addr, size) |
17 | 17 | ||
18 | #elif defined(__BIG_ENDIAN) | 18 | #elif defined(__BIG_ENDIAN) |
19 | 19 | ||
20 | #define BITOP_LE_SWIZZLE ((BITS_PER_LONG-1) & ~0x7) | 20 | #define BITOP_LE_SWIZZLE ((BITS_PER_LONG-1) & ~0x7) |
21 | 21 | ||
22 | extern unsigned long generic_find_next_zero_le_bit(const unsigned long *addr, | 22 | extern unsigned long find_next_zero_bit_le(const unsigned long *addr, |
23 | unsigned long size, unsigned long offset); | 23 | unsigned long size, unsigned long offset); |
24 | extern unsigned long generic_find_next_le_bit(const unsigned long *addr, | 24 | extern unsigned long find_next_bit_le(const unsigned long *addr, |
25 | unsigned long size, unsigned long offset); | 25 | unsigned long size, unsigned long offset); |
26 | 26 | ||
27 | #define generic_find_first_zero_le_bit(addr, size) \ | 27 | #define find_first_zero_bit_le(addr, size) \ |
28 | generic_find_next_zero_le_bit((addr), (size), 0) | 28 | find_next_zero_bit_le((addr), (size), 0) |
29 | 29 | ||
30 | #else | 30 | #else |
31 | #error "Please fix <asm/byteorder.h>" | 31 | #error "Please fix <asm/byteorder.h>" |
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | #define generic_test_le_bit(nr, addr) \ | 34 | #define test_bit_le(nr, addr) \ |
35 | test_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 35 | test_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
36 | #define generic___set_le_bit(nr, addr) \ | 36 | #define __set_bit_le(nr, addr) \ |
37 | __set_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 37 | __set_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
38 | #define generic___clear_le_bit(nr, addr) \ | 38 | #define __clear_bit_le(nr, addr) \ |
39 | __clear_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 39 | __clear_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
40 | 40 | ||
41 | #define generic_test_and_set_le_bit(nr, addr) \ | 41 | #define test_and_set_bit_le(nr, addr) \ |
42 | test_and_set_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 42 | test_and_set_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
43 | #define generic_test_and_clear_le_bit(nr, addr) \ | 43 | #define test_and_clear_bit_le(nr, addr) \ |
44 | test_and_clear_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 44 | test_and_clear_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
45 | 45 | ||
46 | #define generic___test_and_set_le_bit(nr, addr) \ | 46 | #define __test_and_set_bit_le(nr, addr) \ |
47 | __test_and_set_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 47 | __test_and_set_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
48 | #define generic___test_and_clear_le_bit(nr, addr) \ | 48 | #define __test_and_clear_bit_le(nr, addr) \ |
49 | __test_and_clear_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) | 49 | __test_and_clear_bit((nr) ^ BITOP_LE_SWIZZLE, (addr)) |
50 | 50 | ||
51 | #endif /* _ASM_GENERIC_BITOPS_LE_H_ */ | 51 | #endif /* _ASM_GENERIC_BITOPS_LE_H_ */ |
diff --git a/include/asm-generic/bitops/minix-le.h b/include/asm-generic/bitops/minix-le.h index 4a981c1bb1ae..854e9489f62d 100644 --- a/include/asm-generic/bitops/minix-le.h +++ b/include/asm-generic/bitops/minix-le.h | |||
@@ -4,14 +4,14 @@ | |||
4 | #include <asm-generic/bitops/le.h> | 4 | #include <asm-generic/bitops/le.h> |
5 | 5 | ||
6 | #define minix_test_and_set_bit(nr,addr) \ | 6 | #define minix_test_and_set_bit(nr,addr) \ |
7 | generic___test_and_set_le_bit((nr),(unsigned long *)(addr)) | 7 | __test_and_set_bit_le((nr), (unsigned long *)(addr)) |
8 | #define minix_set_bit(nr,addr) \ | 8 | #define minix_set_bit(nr,addr) \ |
9 | generic___set_le_bit((nr),(unsigned long *)(addr)) | 9 | __set_bit_le((nr), (unsigned long *)(addr)) |
10 | #define minix_test_and_clear_bit(nr,addr) \ | 10 | #define minix_test_and_clear_bit(nr,addr) \ |
11 | generic___test_and_clear_le_bit((nr),(unsigned long *)(addr)) | 11 | __test_and_clear_bit_le((nr), (unsigned long *)(addr)) |
12 | #define minix_test_bit(nr,addr) \ | 12 | #define minix_test_bit(nr,addr) \ |
13 | generic_test_le_bit((nr),(unsigned long *)(addr)) | 13 | test_bit_le((nr), (unsigned long *)(addr)) |
14 | #define minix_find_first_zero_bit(addr,size) \ | 14 | #define minix_find_first_zero_bit(addr,size) \ |
15 | generic_find_first_zero_le_bit((unsigned long *)(addr),(size)) | 15 | find_first_zero_bit_le((unsigned long *)(addr), (size)) |
16 | 16 | ||
17 | #endif /* _ASM_GENERIC_BITOPS_MINIX_LE_H_ */ | 17 | #endif /* _ASM_GENERIC_BITOPS_MINIX_LE_H_ */ |
diff --git a/lib/find_next_bit.c b/lib/find_next_bit.c index 24c59ded47a0..c093ba988003 100644 --- a/lib/find_next_bit.c +++ b/lib/find_next_bit.c | |||
@@ -185,7 +185,7 @@ static inline unsigned long ext2_swab(const unsigned long y) | |||
185 | #endif | 185 | #endif |
186 | } | 186 | } |
187 | 187 | ||
188 | unsigned long generic_find_next_zero_le_bit(const unsigned long *addr, unsigned | 188 | unsigned long find_next_zero_bit_le(const unsigned long *addr, unsigned |
189 | long size, unsigned long offset) | 189 | long size, unsigned long offset) |
190 | { | 190 | { |
191 | const unsigned long *p = addr + BITOP_WORD(offset); | 191 | const unsigned long *p = addr + BITOP_WORD(offset); |
@@ -226,10 +226,9 @@ found_middle: | |||
226 | found_middle_swap: | 226 | found_middle_swap: |
227 | return result + ffz(ext2_swab(tmp)); | 227 | return result + ffz(ext2_swab(tmp)); |
228 | } | 228 | } |
229 | EXPORT_SYMBOL(find_next_zero_bit_le); | ||
229 | 230 | ||
230 | EXPORT_SYMBOL(generic_find_next_zero_le_bit); | 231 | unsigned long find_next_bit_le(const unsigned long *addr, unsigned |
231 | |||
232 | unsigned long generic_find_next_le_bit(const unsigned long *addr, unsigned | ||
233 | long size, unsigned long offset) | 232 | long size, unsigned long offset) |
234 | { | 233 | { |
235 | const unsigned long *p = addr + BITOP_WORD(offset); | 234 | const unsigned long *p = addr + BITOP_WORD(offset); |
@@ -271,5 +270,5 @@ found_middle: | |||
271 | found_middle_swap: | 270 | found_middle_swap: |
272 | return result + __ffs(ext2_swab(tmp)); | 271 | return result + __ffs(ext2_swab(tmp)); |
273 | } | 272 | } |
274 | EXPORT_SYMBOL(generic_find_next_le_bit); | 273 | EXPORT_SYMBOL(find_next_bit_le); |
275 | #endif /* __BIG_ENDIAN */ | 274 | #endif /* __BIG_ENDIAN */ |