提交 6f08e51c 编写于 作者: A Amadeusz Sławiński 提交者: 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: NCezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: NAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20220527115345.2588775-3-amadeuszx.slawinski@linux.intel.comSigned-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册