[PATCH v2] clk: Use div64_ul instead of do_div
Stephen Boyd
sboyd at kernel.org
Fri Dec 3 10:15:14 AEDT 2021
Please fix the subject. It should be "clk: npcm7xx: Use ..."
Quoting cgel.zte at gmail.com (2021-11-18 00:28:58)
> From: Changcheng Deng <deng.changcheng at zte.com.cn>
>
> do_div() does a 64-by-32 division. Here the divisor is an unsigned long
> which on some platforms is 64 bit wide. So use div64_ul instead of do_div
> to avoid a possible truncation.
>
> Reported-by: Zeal Robot <zealci at zte.com.cn>
> Signed-off-by: Changcheng Deng <deng.changcheng at zte.com.cn>
More information about the openbmc
mailing list