diff options
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/bitops.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/x86/include/asm/bitops.h b/arch/x86/include/asm/bitops.h index 1775d6e5920e..4a6235b053cb 100644 --- a/arch/x86/include/asm/bitops.h +++ b/arch/x86/include/asm/bitops.h | |||
@@ -380,6 +380,8 @@ static inline unsigned long __fls(unsigned long word) | |||
380 | return word; | 380 | return word; |
381 | } | 381 | } |
382 | 382 | ||
383 | #undef ADDR | ||
384 | |||
383 | #ifdef __KERNEL__ | 385 | #ifdef __KERNEL__ |
384 | /** | 386 | /** |
385 | * ffs - find first set bit in word | 387 | * ffs - find first set bit in word |
@@ -434,11 +436,6 @@ static inline int fls(int x) | |||
434 | #endif | 436 | #endif |
435 | return r + 1; | 437 | return r + 1; |
436 | } | 438 | } |
437 | #endif /* __KERNEL__ */ | ||
438 | |||
439 | #undef ADDR | ||
440 | |||
441 | #ifdef __KERNEL__ | ||
442 | 439 | ||
443 | #include <asm-generic/bitops/find.h> | 440 | #include <asm-generic/bitops/find.h> |
444 | 441 | ||
@@ -450,12 +447,8 @@ static inline int fls(int x) | |||
450 | 447 | ||
451 | #include <asm-generic/bitops/const_hweight.h> | 448 | #include <asm-generic/bitops/const_hweight.h> |
452 | 449 | ||
453 | #endif /* __KERNEL__ */ | ||
454 | |||
455 | #include <asm-generic/bitops/fls64.h> | 450 | #include <asm-generic/bitops/fls64.h> |
456 | 451 | ||
457 | #ifdef __KERNEL__ | ||
458 | |||
459 | #include <asm-generic/bitops/le.h> | 452 | #include <asm-generic/bitops/le.h> |
460 | 453 | ||
461 | #include <asm-generic/bitops/ext2-atomic-setbit.h> | 454 | #include <asm-generic/bitops/ext2-atomic-setbit.h> |