[PATCH v2 8/8] net/sfc: fix calloc parameters

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Thu Jan 25 08:10:16 CET 2024


On 1/24/24 22:02, Morten Brørup wrote:
>> From: Ferruh Yigit [mailto:ferruh.yigit at 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: stable at dpdk.org
>>
>> Signed-off-by: Ferruh Yigit <ferruh.yigit at amd.com>
>> ---
> 
> Acked-by: Morten Brørup <mb at smartsharesystems.com>
> 

Reviewed-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>



More information about the stable mailing list