[PATCH 0/2] bitops: __fls adjustments

2022-05-25 Thread Amadeusz Sławiński
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

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

2022-05-25 Thread Amadeusz Sławiński
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

[PATCH 1/2] ARC: bitops: Change __fls to return unsigned long

2022-05-25 Thread Amadeusz Sławiński
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

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

2022-05-27 Thread Amadeusz Sławiński
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

[PATCH v2 0/3] bitops: __fls adjustments

2022-05-27 Thread Amadeusz Sławiński
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

[PATCH v2 3/3] sparc64: bitops: Change __fls to return unsigned long

2022-05-27 Thread Amadeusz Sławiński
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

[PATCH v2 1/3] ARC: bitops: Change __fls to return unsigned long

2022-05-27 Thread Amadeusz Sławiński
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

Re: [PATCH 1/2] ARC: bitops: Change __fls to return unsigned long

2022-05-27 Thread Amadeusz Sławiński
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

Re: [PATCH v2 3/3] sparc64: bitops: Change __fls to return unsigned long

2022-08-03 Thread 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