
On 11:13 Tue 18 Aug , Simon Kagstrom wrote:
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.
v2: Unify code style (empty line between ffs/fls)
please this
Signed-off-by: Simon Kagstrom simon.kagstrom@netinsight.net
here
include/asm-arm/bitops.h | 4 ++++ include/asm-avr32/bitops.h | 4 ++++ include/asm-i386/bitops.h | 2 ++ include/asm-m68k/bitops.h | 2 ++ include/asm-microblaze/bitops.h | 2 ++ include/asm-mips/bitops.h | 2 ++ include/asm-nios/bitops.h | 5 ++++- include/asm-nios2/bitops.h | 5 ++++- include/asm-sh/bitops.h | 2 ++ include/asm-sparc/bitops.h | 4 ++++ include/linux/bitops.h | 37 +++++++++++++++++++++++++++++++++++++
Acked-by: Jean-Christophe PLAGNIOL-VILLARD plagnioj@jcrosoft.com
Best Regards, J.