Re: [PATCH] bitops: Share the generic ffs()/fls() binary search via UNROLL()

From: Arnd Bergmann

Date: Fri Oct 16 2026 - 03:19:27 EST


On Fri, Oct 16, 2026, at 07:54, Arnd Bergmann wrote:
>
> I don't understand what you are trying to do here, but I don't
> think we want this change: I find the nested macros harder
> to read than the open-coded version and your changelog text
> fails to explain what the purpose is.

If you are interested in creating helpful patches in this area,
maybe you could work towards eliminating the generic versions
of these functions in favor of using the builtin ones on targets
where the compilers produce sensible code for them.

Arnd