> From: Ferruh Yigit [mailto:ferruh.yi...@amd.com] > Sent: Wednesday, 24 January 2024 19.54 > > gcc [1] generates warning [2] about rte_calloc usage, because > rte_calloc parameter order is wrong, fixing it by replacing parameters. > > [1] > gcc (GCC) 14.0.1 20240124 (experimental) > > [2] > Compiling C object drivers/libtmp_rte_net_bnx2x.a.p/net_bnx2x_bnx2x.c.o > ../drivers/net/bnx2x/bnx2x.c: In function ‘bnx2x_alloc_ilt_lines_mem’: > ../drivers/net/bnx2x/bnx2x.c:2392:44: > warning: ‘rte_calloc’ sizes specified with ‘sizeof’ in the earlier > argument and not in the later argument [-Wcalloc-transposed-args] > 2392 | sizeof(struct ilt_line), ILT_MAX_LINES, > | ^~~~~~ > > Fixes: 540a211084a7 ("bnx2x: driver core") > Cc: sta...@dpdk.org > > Signed-off-by: Ferruh Yigit <ferruh.yi...@amd.com> > ---
Acked-by: Morten Brørup <m...@smartsharesystems.com>