aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorYang Li <[email protected]>2021-11-18 17:48:03 +0800
committerJakub Kicinski <[email protected]>2021-11-19 20:13:02 -0800
commitd9f31aeaa1e5aefa68130878af3c3513d41c1e2d (patch)
tree93418f43334231934f91944f9da0add927db15c8 /tools/perf/scripts/python/exported-sql-viewer.py
parent8d22679dc89a6d9e1d41b2514902e3f7ef51547a (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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions