diff options
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/bitops_64.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-x86/bitops_64.h b/include/asm-x86/bitops_64.h index d13352087191..4081d7ecc2bd 100644 --- a/include/asm-x86/bitops_64.h +++ b/include/asm-x86/bitops_64.h | |||
@@ -5,6 +5,7 @@ | |||
5 | * Copyright 1992, Linus Torvalds. | 5 | * Copyright 1992, Linus Torvalds. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #ifndef CONFIG_GENERIC_FIND_FIRST_BIT | ||
8 | extern long find_first_zero_bit(const unsigned long *addr, unsigned long size); | 9 | extern long find_first_zero_bit(const unsigned long *addr, unsigned long size); |
9 | extern long find_first_bit(const unsigned long *addr, unsigned long size); | 10 | extern long find_first_bit(const unsigned long *addr, unsigned long size); |
10 | 11 | ||
@@ -24,6 +25,7 @@ static inline long __scanbit(unsigned long val, unsigned long max) | |||
24 | ((__builtin_constant_p((size)) && (size) <= BITS_PER_LONG \ | 25 | ((__builtin_constant_p((size)) && (size) <= BITS_PER_LONG \ |
25 | ? (__scanbit(~*(unsigned long *)(addr), (size))) \ | 26 | ? (__scanbit(~*(unsigned long *)(addr), (size))) \ |
26 | : find_first_zero_bit((addr), (size)))) | 27 | : find_first_zero_bit((addr), (size)))) |
28 | #endif | ||
27 | 29 | ||
28 | static inline void set_bit_string(unsigned long *bitmap, unsigned long i, | 30 | static inline void set_bit_string(unsigned long *bitmap, unsigned long i, |
29 | int len) | 31 | int len) |