diff options
| author | Yang Li <[email protected]> | 2021-11-18 17:48:03 +0800 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-11-19 20:13:02 -0800 |
| commit | d9f31aeaa1e5aefa68130878af3c3513d41c1e2d (patch) | |
| tree | 93418f43334231934f91944f9da0add927db15c8 /tools/perf/scripts/python/intel-pt-events.py | |
| parent | 8d22679dc89a6d9e1d41b2514902e3f7ef51547a (diff) | |
ethernet: renesas: Use div64_ul instead of do_div
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.
Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Yang Li <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Sergey Shtylyov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions