diff options
author | Biju Das <[email protected]> | 2023-08-24 11:48:10 +0100 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2023-09-11 13:23:52 -0700 |
commit | 576418e3417267e93ffee09c46f56434108c4548 (patch) | |
tree | ddcf7964200a326a274a5710affd6496d3363f4a /lib/test_fortify/write_overflow-memcpy.c | |
parent | 1aa2a9f27627447da247997c34c71af9402fa237 (diff) |
clk: vc3: Fix 64 by 64 division
Fix the below cocci warnings by replacing do_div()->div64_ul() and
bound the result with a max value of U16_MAX.
cocci warnings:
drivers/clk/clk-versaclock3.c:404:2-8: WARNING: do_div() does a
64-by-32 division, please consider using div64_ul instead.
Reported-by: Julia Lawall <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Fixes: 6e9aff555db7 ("clk: Add support for versa3 clock driver")
Signed-off-by: Biju Das <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions