diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-31 18:42:17 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-31 18:42:17 -0500 |
commit | ccec25ff69d5f48c7a088c16fe2dc7e11d9e87fe (patch) | |
tree | c51699546cd7c68ea84c2c720783097a6313f400 | |
parent | 96b8d4c19d797200b973caab57ca842531184c13 (diff) |
blackfin: define __fls
Like fls, but can't be handed 0 and returns the bit number.
(I broke this arch in linux-next by using __fls in generic code).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | arch/blackfin/include/asm/bitops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/bitops.h b/arch/blackfin/include/asm/bitops.h index b39a175c79c1..c428e4106f89 100644 --- a/arch/blackfin/include/asm/bitops.h +++ b/arch/blackfin/include/asm/bitops.h | |||
@@ -213,6 +213,7 @@ static __inline__ int __test_bit(int nr, const void *addr) | |||
213 | #endif /* __KERNEL__ */ | 213 | #endif /* __KERNEL__ */ |
214 | 214 | ||
215 | #include <asm-generic/bitops/fls.h> | 215 | #include <asm-generic/bitops/fls.h> |
216 | #include <asm-generic/bitops/__fls.h> | ||
216 | #include <asm-generic/bitops/fls64.h> | 217 | #include <asm-generic/bitops/fls64.h> |
217 | 218 | ||
218 | #endif /* _BLACKFIN_BITOPS_H */ | 219 | #endif /* _BLACKFIN_BITOPS_H */ |