Apparently on few architectures __fls is defined incorrectly. Fix this
by adjusting declarations to asm-generic ones.
As far as I can tell there should be no functional changes, but I don't
have devices to test it, so it was only compile tested.
Amadeusz Sławiński (2):
ARC: bitops: Change
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
---
arch/m68k/include/asm/bitops.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/m68k/include/asm/bitops.h b/arch
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
---
arch/arc/include/asm/bitops.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
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
Signed-off-by: Amadeusz Sławiński
---
arch/m68k/include/asm/bitops.h
header (pointed by Guenter Roeck)
- also change sparc64 declaration (pointed by Guenter Roeck)
Amadeusz Sławiński (3):
ARC: bitops: Change __fls to return unsigned long
m68k: bitops: Change __fls to return and accept unsigned long
sparc64: bitops: Change __fls to return unsigned long
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.
Reviewed-by: Cezary Rojewski
Signed-off-by: Amadeusz Sławiński
---
arch/sparc/include/asm/bitops_64.h | 2 +-
1 file changed
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.
Reviewed-by: Cezary Rojewski
Signed-off-by: Amadeusz Sławiński
---
arch/arc/include/asm/bitops.h | 4 ++--
1 file changed, 2
On 5/26/2022 5:42 AM, Vineet Gupta wrote:
Hi,
On 5/25/22 07:48, Amadeusz Sławiński wrote:
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
On 5/27/2022 1:53 PM, Amadeusz Sławiński wrote:
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.
Reviewed-by: Cezary Rojewski
Signed-off-by: Amadeusz Sławiński
---
arch