Skip to content

Commit 6f08e51

Browse files
Amadeusz Sławińskigeertu
authored andcommitted
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>
1 parent b5d263c commit 6f08e51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/m68k/include/asm/bitops.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ static inline int fls(unsigned int x)
510510
return 32 - cnt;
511511
}
512512

513-
static inline int __fls(int x)
513+
static inline unsigned long __fls(unsigned long x)
514514
{
515515
return fls(x) - 1;
516516
}

0 commit comments

Comments
 (0)