Hi,

On 17/11/2023 12:24, Oleksii Kurochko wrote:
All archs have the do_div implementation for BITS_PER_LONG == 64
so do_div64.h is moved to asm-generic.

You are saying "all archs" but ...


x86 and PPC were switched to asm-generic version of div64.h.

... you only switch x86/PPC to div64.h.

I guess this is because for arm we have a different implementation for 32-bits. The 64-bits version is the same as x86/PPC.

So I wonder if it is possible to include asm-generic/div64.h from arch/arm/include/asm/div64.h?

This will avoid duplicating some code.

Cheers,

--
Julien Grall

Reply via email to