aboutsummaryrefslogtreecommitdiff
path: root/include/asm-nios
diff options
context:
space:
mode:
authorSimon Kagstrom2009-08-24 09:10:12 +0200
committerWolfgang Denk2009-09-15 22:34:32 +0200
commit52d61227b66d4099b39c8309ab37cb67ee09a405 (patch)
tree0c5562920f48672d38baf05dd744118a4a8f2e69 /include/asm-nios
parent4b15de08fe4d2c9d12a3764394731018a763216b (diff)
Define ffs/fls for all architectures
UBIFS requires fls(), which is not defined for arm (and some other architectures) and this patch adds it. The implementation is taken from Linux and is generic. ffs() is also defined for those that miss it. Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Diffstat (limited to 'include/asm-nios')
-rw-r--r--include/asm-nios/bitops.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-nios/bitops.h b/include/asm-nios/bitops.h
index 7744212b45a..8315fb7caaf 100644
--- a/include/asm-nios/bitops.h
+++ b/include/asm-nios/bitops.h
@@ -33,5 +33,6 @@ extern int test_and_set_bit(int nr, volatile void * a);
extern int test_and_change_bit(int nr, volatile void * addr);
extern int test_bit(int nr, volatile void * a);
extern int ffs(int i);
+#define ffs
#endif /* _ASM_NIOS_BITOPS_H */