Commit 6f08e51c authored by Amadeusz Sławiński's avatar Amadeusz Sławiński Committed by Geert Uytterhoeven

m68k: bitops: Change __fls to return and accept unsigned long

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: default avatarCezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: default avatarAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20220527115345.2588775-3-amadeuszx.slawinski@linux.intel.comSigned-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent b5d263cd
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment