diff options
Diffstat (limited to 'include/asm-x86/bitops_64.h')
-rw-r--r-- | include/asm-x86/bitops_64.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/bitops_64.h b/include/asm-x86/bitops_64.h index d4dbbe5f7bd..1d7d9b4bcac 100644 --- a/include/asm-x86/bitops_64.h +++ b/include/asm-x86/bitops_64.h | |||
@@ -260,7 +260,7 @@ extern long find_first_bit(const unsigned long * addr, unsigned long size); | |||
260 | extern long find_next_bit(const unsigned long * addr, long size, long offset); | 260 | extern long find_next_bit(const unsigned long * addr, long size, long offset); |
261 | 261 | ||
262 | /* return index of first bet set in val or max when no bit is set */ | 262 | /* return index of first bet set in val or max when no bit is set */ |
263 | static inline unsigned long __scanbit(unsigned long val, unsigned long max) | 263 | static inline long __scanbit(unsigned long val, unsigned long max) |
264 | { | 264 | { |
265 | asm("bsfq %1,%0 ; cmovz %2,%0" : "=&r" (val) : "r" (val), "r" (max)); | 265 | asm("bsfq %1,%0 ; cmovz %2,%0" : "=&r" (val) : "r" (val), "r" (max)); |
266 | return val; | 266 | return val; |