Re: [PATCH V3] pwm: rcar: Use div64_ul instead of do_div
From: Uwe Kleine-König
Date: Thu Nov 18 2021 - 03:43:04 EST
On Thu, Nov 18, 2021 at 03:02:15AM +0000, cgel.zte@xxxxxxxxx wrote:
> From: Changcheng Deng <deng.changcheng@xxxxxxxxxx>
> 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@xxxxxxxxxx>
> Signed-off-by: Changcheng Deng <deng.changcheng@xxxxxxxxxx>
You're supposed to add a S-o-b line for yourself with a email address
that matches the sender of the patch.
Other than that the patch looks fine now.
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
Description: PGP signature