On 20. Mar 2024, at 16:01, Thorsten Blum wrote:
>
> Coccinelle also finds this one, but please ignore this patch as I just
> realized
> this was already fixed in another patch of mine from February.
>
> Sorry for the inconvenience.
>
> Link:
> https://lore.kernel.org/linux-kernel/202402251645
On 20. Mar 2024, at 11:27, Masami Hiramatsu (Google)
wrote:
>
> Hmm, strange, trace_do_benchmark() has another do_div(u64, u64).
>
>do {
>last_seed = seed;
>seed = stddev;
>if (!last_seed)
>
On Mon, 18 Mar 2024 11:52:44 +0100
Thorsten Blum wrote:
> Explicitly cast the divisor to u32 to fix a Coccinelle/coccicheck warning
> reported by do_div.cocci.
>
Hmm, strange, trace_do_benchmark() has another do_div(u64, u64).
do {
last_seed = seed;
Explicitly cast the divisor to u32 to fix a Coccinelle/coccicheck warning
reported by do_div.cocci.
Signed-off-by: Thorsten Blum
---
kernel/trace/trace_benchmark.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/trace/trace_benchmark.c b/kernel/trace/trace_benchmark.c
4 matches
Mail list logo