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: 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>
This commit is contained in:
Amadeusz Sławiński 2022-05-27 13:53:44 +02:00 коммит произвёл Geert Uytterhoeven
Родитель b5d263cde5
Коммит 6f08e51cdb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}