m68k: bitops: Change __fls to return and accept unsigned long
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Fri, 27 May 2022 11:53:44 +0000 (13:53 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 6 Jul 2022 12:07:04 +0000 (14:07 +0200)
As per asm-generic definition and other architectures __fls should
return and accept unsigned long as its parameter.

No functional change is expected as return value should fit in unsigned
long.

Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20220527115345.2588775-3-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/bitops.h

index 51283db..87c2cd6 100644 (file)
@@ -510,7 +510,7 @@ static inline int fls(unsigned int x)
        return 32 - cnt;
 }
 
-static inline int __fls(int x)
+static inline unsigned long __fls(unsigned long x)
 {
        return fls(x) - 1;
 }