diff mbox series

[2/2] m68k: bitops: Change __fls to return and accept unsigned long

Message ID 20220525144844.1571705-3-amadeuszx.slawinski@linux.intel.com
State New
Headers show
Series bitops: __fls adjustments | expand

Commit Message

Amadeusz Sławiński May 25, 2022, 2:48 p.m. UTC
As per asm-generic definition and other architectures __fls should
return and accept unsigned long as its parameter.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
---
 arch/m68k/include/asm/bitops.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/m68k/include/asm/bitops.h b/arch/m68k/include/asm/bitops.h
index 51283db53667..87c2cd66a9ce 100644
--- a/arch/m68k/include/asm/bitops.h
+++ b/arch/m68k/include/asm/bitops.h
@@ -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;
 }