]> Git Repo - linux.git/commit
tracing: Use div64_u64() instead of do_div()
authorThorsten Blum <[email protected]>
Sun, 25 Feb 2024 16:45:08 +0000 (17:45 +0100)
committerSteven Rostedt (Google) <[email protected]>
Mon, 18 Mar 2024 14:33:06 +0000 (10:33 -0400)
commitd6cb38e10810743addf8cac0b277861d614de1e9
tree95bff947f6c4e89a22e9b9beb9b774eb0ae4aa06
parent19f0423fd55c301c8edaea286e568ec657f42750
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]>
kernel/trace/trace_benchmark.c
This page took 0.053743 seconds and 4 git commands to generate.