ARM: fix ffs/fls implementations to match x86
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 13 Jan 2014 23:34:56 +0000 (23:34 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 13 Jan 2014 23:34:56 +0000 (23:34 +0000)
ARMs ffs/fls implementations are not type compatible with x86, so when
they're used in combination with min()/max(), they provoke warnings.
Change these to be inline functions with the correct types, providing
the clz as a separate documentation, and document their individual
behaviours.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/bitops.h

Simple merge