[PATCH V3] pwm: Use div64_ul instead of do_div

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Thu Nov 18 01:54:18 PST 2021


On Thu, Nov 18, 2021 at 02:52:54AM +0000, cgel.zte at gmail.com wrote:
> 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>

There is no S-o-b line matching the mail sender.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20211118/0b81081b/attachment.sig>


More information about the linux-arm-kernel mailing list