diff options
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/Kconfig.nommu | 4 | ||||
-rw-r--r-- | arch/m68k/include/asm/bitops_mm.h | 8 | ||||
-rw-r--r-- | arch/m68k/include/asm/bitops_no.h | 4 |
3 files changed, 12 insertions, 4 deletions
diff --git a/arch/m68k/Kconfig.nommu b/arch/m68k/Kconfig.nommu index 273bccab9517..fc98f9b9d4d2 100644 --- a/arch/m68k/Kconfig.nommu +++ b/arch/m68k/Kconfig.nommu | |||
@@ -2,10 +2,6 @@ config FPU | |||
2 | bool | 2 | bool |
3 | default n | 3 | default n |
4 | 4 | ||
5 | config GENERIC_FIND_NEXT_BIT | ||
6 | bool | ||
7 | default y | ||
8 | |||
9 | config GENERIC_GPIO | 5 | config GENERIC_GPIO |
10 | bool | 6 | bool |
11 | default n | 7 | default n |
diff --git a/arch/m68k/include/asm/bitops_mm.h b/arch/m68k/include/asm/bitops_mm.h index e9020f88a748..89cf5b814a4d 100644 --- a/arch/m68k/include/asm/bitops_mm.h +++ b/arch/m68k/include/asm/bitops_mm.h | |||
@@ -200,6 +200,7 @@ out: | |||
200 | res += ((long)p - (long)vaddr - 4) * 8; | 200 | res += ((long)p - (long)vaddr - 4) * 8; |
201 | return res < size ? res : size; | 201 | return res < size ? res : size; |
202 | } | 202 | } |
203 | #define find_first_zero_bit find_first_zero_bit | ||
203 | 204 | ||
204 | static inline int find_next_zero_bit(const unsigned long *vaddr, int size, | 205 | static inline int find_next_zero_bit(const unsigned long *vaddr, int size, |
205 | int offset) | 206 | int offset) |
@@ -229,6 +230,7 @@ static inline int find_next_zero_bit(const unsigned long *vaddr, int size, | |||
229 | /* No zero yet, search remaining full bytes for a zero */ | 230 | /* No zero yet, search remaining full bytes for a zero */ |
230 | return offset + find_first_zero_bit(p, size - offset); | 231 | return offset + find_first_zero_bit(p, size - offset); |
231 | } | 232 | } |
233 | #define find_next_zero_bit find_next_zero_bit | ||
232 | 234 | ||
233 | static inline int find_first_bit(const unsigned long *vaddr, unsigned size) | 235 | static inline int find_first_bit(const unsigned long *vaddr, unsigned size) |
234 | { | 236 | { |
@@ -253,6 +255,7 @@ out: | |||
253 | res += ((long)p - (long)vaddr - 4) * 8; | 255 | res += ((long)p - (long)vaddr - 4) * 8; |
254 | return res < size ? res : size; | 256 | return res < size ? res : size; |
255 | } | 257 | } |
258 | #define find_first_bit find_first_bit | ||
256 | 259 | ||
257 | static inline int find_next_bit(const unsigned long *vaddr, int size, | 260 | static inline int find_next_bit(const unsigned long *vaddr, int size, |
258 | int offset) | 261 | int offset) |
@@ -282,6 +285,7 @@ static inline int find_next_bit(const unsigned long *vaddr, int size, | |||
282 | /* No one yet, search remaining full bytes for a one */ | 285 | /* No one yet, search remaining full bytes for a one */ |
283 | return offset + find_first_bit(p, size - offset); | 286 | return offset + find_first_bit(p, size - offset); |
284 | } | 287 | } |
288 | #define find_next_bit find_next_bit | ||
285 | 289 | ||
286 | /* | 290 | /* |
287 | * ffz = Find First Zero in word. Undefined if no zero exists, | 291 | * ffz = Find First Zero in word. Undefined if no zero exists, |
@@ -398,6 +402,7 @@ out: | |||
398 | res += (p - addr) * 32; | 402 | res += (p - addr) * 32; |
399 | return res < size ? res : size; | 403 | return res < size ? res : size; |
400 | } | 404 | } |
405 | #define find_first_zero_bit_le find_first_zero_bit_le | ||
401 | 406 | ||
402 | static inline unsigned long find_next_zero_bit_le(const void *addr, | 407 | static inline unsigned long find_next_zero_bit_le(const void *addr, |
403 | unsigned long size, unsigned long offset) | 408 | unsigned long size, unsigned long offset) |
@@ -427,6 +432,7 @@ static inline unsigned long find_next_zero_bit_le(const void *addr, | |||
427 | /* No zero yet, search remaining full bytes for a zero */ | 432 | /* No zero yet, search remaining full bytes for a zero */ |
428 | return offset + find_first_zero_bit_le(p, size - offset); | 433 | return offset + find_first_zero_bit_le(p, size - offset); |
429 | } | 434 | } |
435 | #define find_next_zero_bit_le find_next_zero_bit_le | ||
430 | 436 | ||
431 | static inline int find_first_bit_le(const void *vaddr, unsigned size) | 437 | static inline int find_first_bit_le(const void *vaddr, unsigned size) |
432 | { | 438 | { |
@@ -451,6 +457,7 @@ out: | |||
451 | res += (p - addr) * 32; | 457 | res += (p - addr) * 32; |
452 | return res < size ? res : size; | 458 | return res < size ? res : size; |
453 | } | 459 | } |
460 | #define find_first_bit_le find_first_bit_le | ||
454 | 461 | ||
455 | static inline unsigned long find_next_bit_le(const void *addr, | 462 | static inline unsigned long find_next_bit_le(const void *addr, |
456 | unsigned long size, unsigned long offset) | 463 | unsigned long size, unsigned long offset) |
@@ -480,6 +487,7 @@ static inline unsigned long find_next_bit_le(const void *addr, | |||
480 | /* No set bit yet, search remaining full bytes for a set bit */ | 487 | /* No set bit yet, search remaining full bytes for a set bit */ |
481 | return offset + find_first_bit_le(p, size - offset); | 488 | return offset + find_first_bit_le(p, size - offset); |
482 | } | 489 | } |
490 | #define find_next_bit_le find_next_bit_le | ||
483 | 491 | ||
484 | /* Bitmap functions for the ext2 filesystem. */ | 492 | /* Bitmap functions for the ext2 filesystem. */ |
485 | 493 | ||
diff --git a/arch/m68k/include/asm/bitops_no.h b/arch/m68k/include/asm/bitops_no.h index 6b0e2d349f0e..72e85acdd7bd 100644 --- a/arch/m68k/include/asm/bitops_no.h +++ b/arch/m68k/include/asm/bitops_no.h | |||
@@ -319,6 +319,10 @@ found_first: | |||
319 | found_middle: | 319 | found_middle: |
320 | return result + ffz(__swab32(tmp)); | 320 | return result + ffz(__swab32(tmp)); |
321 | } | 321 | } |
322 | #define find_next_zero_bit_le find_next_zero_bit_le | ||
323 | |||
324 | extern unsigned long find_next_bit_le(const void *addr, | ||
325 | unsigned long size, unsigned long offset); | ||
322 | 326 | ||
323 | #endif /* __KERNEL__ */ | 327 | #endif /* __KERNEL__ */ |
324 | 328 | ||