[dpdk-dev] [PATCH v1] eventdev: fix build error
Thomas Monjalon
thomas at monjalon.net
Wed Oct 10 21:43:11 CEST 2018
09/10/2018 12:13, Ferruh Yigit:
> build error:
> .../lib/librte_eventdev/rte_event_eth_tx_adapter.c:
> In function ‘txa_service_queue_del’:
> .../lib/librte_eventdev/rte_event_eth_tx_adapter.c:800:7:
> error: ‘ret’ may be used uninitialized in this function
> [-Werror=maybe-uninitialized]
> compilation terminated due to -Wfatal-errors.
>
> https://mails.dpdk.org/archives/test-report/2018-October/065919.html
>
> 'ret' may be used uninitialized when 'dev->data->nb_tx_queues' is 0,
> although this is not a practical value, initialize 'ret' to cover this
> case.
>
> Fixes: a3bbf2e09756 ("eventdev: add eth Tx adapter implementation")
> Cc: stable at dpdk.org
The root cause is a new feature in 18.11, so no need to Cc stable.
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
Applied (without stable backport tag), thanks
More information about the dev
mailing list