Re: [PATCH bpf-next] libbpf: fix warning
From: patchwork-bot+netdevbpf
Date: Fri Jul 18 2025 - 11:45:54 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:
On Thu, 17 Jul 2025 22:03:37 +0200 you wrote:
> From: Matteo Croce <teknoraver@xxxxxxxx>
>
> When compiling libbpf with some compilers, this warning is triggered:
>
> libbpf.c: In function ‘bpf_object__gen_loader’:
> libbpf.c:9209:28: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
> 9209 | gen = calloc(sizeof(*gen), 1);
> | ^
> libbpf.c:9209:28: note: earlier argument should specify number of elements, later size of each element
>
> [...]
Here is the summary with links:
- [bpf-next] libbpf: fix warning
https://git.kernel.org/bpf/bpf-next/c/0ee30d937c14
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html