aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorThorsten Blum <[email protected]>2024-02-25 17:45:08 +0100
committerSteven Rostedt (Google) <[email protected]>2024-03-18 10:33:06 -0400
commitd6cb38e10810743addf8cac0b277861d614de1e9 (patch)
tree95bff947f6c4e89a22e9b9beb9b774eb0ae4aa06 /tools/testing/selftests/bpf/progs/test_autoload.c
parent19f0423fd55c301c8edaea286e568ec657f42750 (diff)
tracing: Use div64_u64() instead of do_div()
Fixes Coccinelle/coccicheck warnings reported by do_div.cocci. Compared to do_div(), div64_u64() does not implicitly cast the divisor and does not unnecessarily calculate the remainder. Link: https://lore.kernel.org/linux-trace-kernel/[email protected] Cc: Mathieu Desnoyers <[email protected]> Signed-off-by: Thorsten Blum <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions