Re: [PATCH -next v2] ethernet: renesas: Use div64_ul instead of do_div
From: patchwork-bot+netdevbpf
Date: Fri Nov 19 2021 - 23:30:24 EST
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Thu, 18 Nov 2021 17:48:03 +0800 you wrote:
> 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.
>
> Eliminate the following coccicheck warning:
> ./drivers/net/ethernet/renesas/ravb_main.c:2492:1-7: WARNING:
> do_div() does a 64-by-32 division, please consider using div64_ul
> instead.
>
> [...]
Here is the summary with links:
- [-next,v2] ethernet: renesas: Use div64_ul instead of do_div
https://git.kernel.org/netdev/net-next/c/d9f31aeaa1e5
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html