[PATCH] mtd: ubi: avoid expensive do_div() on 32-bit machines
Zhihao Cheng
chengzhihao1 at huawei.com
Wed Mar 13 06:43:54 PDT 2024
在 2024/3/13 21:39, Arnd Bergmann 写道:
>> Thanks for explaination, which means that do_div is used for 64-bit
>> division to solve the link failure caused by missed libgcc. Since
>> parameter 'from' is u32, there is no need to invoke do_div on a 32-bit
>> platform, you just want to stop the wasting behavior on a 32-bit
>> platform. Do I understand right?
>
> Yes, correct.
>
> Arnd
> .
>
How do you find it? I mean there are so many types and many do_div
callers, do you have a static check tool?
More information about the linux-mtd
mailing list