Re: [PATCH] tracing: Use div64_u64() instead of do_div()

2024-02-25 Thread Google
On Sun, 25 Feb 2024 17:45:08 +0100 Thorsten Blum wrote: > 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. > Looks good to me. Acked-by: Masami Hirama

[PATCH] tracing: Use div64_u64() instead of do_div()

2024-02-25 Thread Thorsten Blum
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. Signed-off-by: Thorsten Blum --- kernel/trace/trace_benchmark.c | 5 ++--- 1 file changed, 2 insertions(+), 3