On 1/24/24 22:02, Morten Brørup wrote:
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_sfc.a.p/net_sfc_sfc_mae.c.o
../net/sfc/sfc_mae.c: In function ‘sfc_mae_action_set_list_add’:
../drivers/net/sfc/sfc_mae.c:1353:35:
warning: ‘rte_calloc’ sizes specified with ‘sizeof’ in the earlier
argument and not in the later argument [-Wcalloc-transposed-args]
1353 | sizeof(struct sfc_mae_action_set *),
| ^~~~~~
Fixes: 002f591f54c3 ("net/sfc: support packet replay in transfer
flows")
Cc: sta...@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yi...@amd.com>
---
Acked-by: Morten Brørup <m...@smartsharesystems.com>
Reviewed-by: Andrew Rybchenko <andrew.rybche...@oktetlabs.ru>