Re: [PATCH] bitops: Change function return types from long to int

From: Thorsten Blum
Date: Fri May 03 2024 - 10:49:27 EST


On 22. Apr 2024, at 17:55, Arnd Bergmann <arnd@xxxxxxxx> wrote:
>>
>> I can generally merge such a series with architecture specific
>> changes through the asm-generic tree, with the appropriate Acks
>> from the maintainers.

What would it take for this patch (with only generic type changes) to be
applied?

I did some further investigations and disassembled my test kernel images.
The patch reduced the number of ARM instructions by 872 with GCC 13 and by
2,354 with GCC 14. Other architectures that rely on the generic bitops
functions will most likely also benefit from this patch.

Tests were done with base commit 9d1ddab261f3e2af7c384dc02238784ce0cf9f98.

Thanks,
Thorsten