d90141961b
build error gcc version 6.3.1 20161221 (Red Hat 6.3.1-1),
with EXTRA_CFLAGS="-O3":
.../drivers/net/thunderx/nicvf_ethdev.c:907:9:
error: ‘txq’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
if (txq->pool_free == nicvf_single_pool_free_xmited_buffers)
~~~^~~~~~~~~~~
.../drivers/net/thunderx/nicvf_ethdev.c:886:20:
note: ‘txq’ was declared here
struct nicvf_txq *txq;
^~~
Same error on function 'nicvf_eth_dev_init' and 'nicvf_dev_start', it
seems 'nicvf_set_tx_function' inlined when optimization enabled.
Initialize the txq and add NULL check before using it to fix.
Fixes:
|
||
---|---|---|
.. | ||
base | ||
Makefile | ||
meson.build | ||
nicvf_ethdev.c | ||
nicvf_ethdev.h | ||
nicvf_logs.h | ||
nicvf_rxtx.c | ||
nicvf_rxtx.h | ||
nicvf_struct.h | ||
nicvf_svf.c | ||
nicvf_svf.h | ||
rte_pmd_thunderx_version.map |