From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 20 Aug 2009 01:11:09 +0200 Subject: [U-Boot] [PATCH 2/4]: Define ffs/fls for all architectures In-Reply-To: <20090818111308.3e6a4149@marrow.netinsight.se> References: <20090818110841.0eb04975@marrow.netinsight.se> <20090818111308.3e6a4149@marrow.netinsight.se> Message-ID: <20090819231109.GI8470@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- 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 Best Regards, J.