numam-dpdk/drivers/mempool/octeontx2
Ferruh Yigit 0403b233ee mempool/octeontx2: fix build for gcc O1 optimization
Can be reproduced with "make EXTRA_CFLAGS='-O1'" command using
gcc (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2)

Build error:
In file included from .../drivers/mempool/octeontx2/otx2_mempool.h:13,
                from .../drivers/mempool/octeontx2/otx2_mempool_ops.c:8:
.../drivers/mempool/octeontx2/otx2_mempool_ops.c:
	In function ‘otx2_npa_alloc’:
.../drivers/common/octeontx2/otx2_common.h:94:2:
    error: ‘aura_handle’ may be used uninitialized in this function
           [-Werror=maybe-uninitialized]
   94 |  rte_log(RTE_LOG_DEBUG, otx2_logtype_ ## subsystem,  \
      |  ^~~~~~~
.../drivers/mempool/octeontx2/otx2_mempool_ops.c:643:11:
    note: ‘aura_handle’ was declared here
  643 |  uint64_t aura_handle;
      |           ^~~~~~~~~~~

This looks like false positive, assigning an initial value to
'aura_handle' to fix the build error.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
2020-05-11 19:21:18 +02:00
..
Makefile build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
otx2_mempool_debug.c common/octeontx2: fix mbox memory access 2019-08-05 23:18:27 +02:00
otx2_mempool_irq.c drivers/octeontx2: fix recursive interrupts 2019-07-29 22:18:01 +02:00
otx2_mempool_ops.c mempool/octeontx2: fix build for gcc O1 optimization 2020-05-11 19:21:18 +02:00
otx2_mempool.c bus/pci: change IOVA as VA flag name 2019-07-22 17:46:32 +02:00
otx2_mempool.h mempool/octeontx2: add remaining slow path ops 2019-06-25 23:35:57 +02:00
rte_mempool_octeontx2_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00