summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-01-01 10:12:17 +1030
committerRusty Russell <rusty@rustcorp.com.au>2009-01-01 10:12:17 +1030
commitccec25ff69d5f48c7a088c16fe2dc7e11d9e87fe (patch)
treec51699546cd7c68ea84c2c720783097a6313f400 /arch
parent96b8d4c19d797200b973caab57ca842531184c13 (diff)
downloadlinux-ccec25ff69d5f48c7a088c16fe2dc7e11d9e87fe.tar.gz
linux-ccec25ff69d5f48c7a088c16fe2dc7e11d9e87fe.tar.bz2
linux-ccec25ff69d5f48c7a088c16fe2dc7e11d9e87fe.zip
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/blackfin/include/asm/bitops.h1
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)
#endif /* __KERNEL__ */
#include <asm-generic/bitops/fls.h>
+#include <asm-generic/bitops/__fls.h>
#include <asm-generic/bitops/fls64.h>
#endif /* _BLACKFIN_BITOPS_H */