Messages in this thread Patch in this message | | | From | Amadeusz Sławiński <> | Subject | [PATCH 1/2] ARC: bitops: Change __fls to return unsigned long | Date | Wed, 25 May 2022 16:48:43 +0200 |
| |
As per asm-generic definition and other architectures __fls should return unsigned long.
No functional change is expected as return value should fit in unsigned long.
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> --- arch/arc/include/asm/bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arc/include/asm/bitops.h b/arch/arc/include/asm/bitops.h index bdb7e190a294..4076607e7168 100644 --- a/arch/arc/include/asm/bitops.h +++ b/arch/arc/include/asm/bitops.h @@ -82,7 +82,7 @@ static inline __attribute__ ((const)) int fls(unsigned int x) /* * __fls: Similar to fls, but zero based (0-31) */ -static inline __attribute__ ((const)) int __fls(unsigned long x) +static inline __attribute__ ((const)) unsigned long __fls(unsigned long x) { if (!x) return 0; -- 2.25.1
| |