Re: [PATCH bpf-next] libbpf: fix warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux