• Nicolas Pitre's avatar
    [ARM] 5339/1: fix __fls() on ARM · 94fc7336
    Nicolas Pitre authored
    Commit 0c65f459 intended to fix truncation issues with fls() on
    ARMv5+ by renaming it to __fls() and wrapping it into a C function.
    However that didn't take into account the fact that __fls() already
    already had different semantics in the kernel.
    
    Let's move the __fls() code into fls() function directly, and redefine
    __fls() with the appropriate semantics.  While at it, bring a generic
    __fls() definition for pre ARMv5 too.
    Signed-off-by: default avatarNicolas Pitre <nico@marvell.com>
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    94fc7336
bitops.h 9.57 KB