aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorMatteo Croce <[email protected]>2025-07-17 20:03:37 +0000
committerAndrii Nakryiko <[email protected]>2025-07-18 15:29:50 +0000
commit0ee30d937c147fc14c4b49535181d437cd2fde7a (patch)
tree66b6d86273cba8ffc3bb7c614e0bc022b92ca028 /lib/crypto/mpi/mpi-cmp.c
parentMerge branch 'a-tool-to-verify-the-bpf-memory-model' (diff)
downloadkernel-0ee30d937c147fc14c4b49535181d437cd2fde7a.tar.gz
kernel-0ee30d937c147fc14c4b49535181d437cd2fde7a.zip
libbpf: Fix warning in calloc() usage
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 Fix this by inverting the calloc() arguments. Signed-off-by: Matteo Croce <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions