[lkml]   [2021]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH V3] pwm: rcar: Use div64_ul instead of do_div
On Thu, Nov 18, 2021 at 03:02:15AM +0000, wrote:
> From: Changcheng Deng <>
> 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 <>
> Signed-off-by: Changcheng Deng <>

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.

Best regards

Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | |
[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2021-11-18 09:43    [W:0.085 / U:1.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site