Re: [PATCH bpf-next v1] bpftool: Silence build warning about calloc()

From: patchwork-bot+netdevbpf
Date: Tue Jan 16 2024 - 10:30:37 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@xxxxxxxxxxxxx>:

On Tue, 16 Jan 2024 14:19:20 +0800 you wrote:
> There exists the following warning when building bpftool:
>
> CC prog.o
> prog.c: In function ‘profile_open_perf_events’:
> prog.c:2301:24: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
> 2301 | sizeof(int), obj->rodata->num_cpu * obj->rodata->num_metric);
> | ^~~
> prog.c:2301:24: note: earlier argument should specify number of elements, later size of each element
>
> [...]

Here is the summary with links:
- [bpf-next,v1] bpftool: Silence build warning about calloc()
https://git.kernel.org/bpf/bpf-next/c/d2729bb2c7e1

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html