numam-dpdk/drivers/event/octeontx2
Ferruh Yigit ea153cc853 event/octeontx2: fix build for O1 optimization
Can be reproduced with "make EXTRA_CFLAGS='-O1'" command using
gcc 7.3.0

Build error
In file included from .../drivers/event/octeontx2/ot
x2_evdev.c:15:0:
.../drivers/event/octeontx2/otx2_evdev_stats.h:
    In function ‘otx2_sso_xstats_get’:
.../drivers/event/octeontx2/otx2_evdev_stats.h:124:9:
    error: ‘xstats’ may be used uninitialized in this function
           [-Werror=maybe-uninitialized]
   xstat = &xstats[ids[i] - start_offset];
   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is false positive, 'xstats_mode_count' should be preventing taking
the loop and accessing 'xstats'.
Returning in that case to silence the compiler warning.

Reported-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Tested-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
2020-05-11 21:09:20 +02:00
..
Makefile build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
meson.build build: add global libatomic dependency for 32-bit clang 2020-04-21 11:34:09 +02:00
otx2_evdev_adptr.c event/octeontx2: fix queue removal from Rx adapter 2020-05-02 11:47:00 +02:00
otx2_evdev_irq.c event/octeontx2: add TIM IRQ handlers 2019-07-03 06:57:02 +02:00
otx2_evdev_selftest.c event/octeontx2: add SSO selftest 2019-07-03 06:56:29 +02:00
otx2_evdev_stats.h event/octeontx2: fix build for O1 optimization 2020-05-11 21:09:20 +02:00
otx2_evdev.c net/octeontx2: add security in Tx 2020-02-05 15:20:51 +01:00
otx2_evdev.h net/octeontx2: add security in Tx 2020-02-05 15:20:51 +01:00
otx2_tim_evdev.c event/octeontx2: use C11 atomics for statistics 2020-04-04 18:38:43 +02:00
otx2_tim_evdev.h event/octeontx2: use C11 atomics for statistics 2020-04-04 18:38:43 +02:00
otx2_tim_worker.c event/octeontx2: use C11 atomics for statistics 2020-04-04 18:38:43 +02:00
otx2_tim_worker.h event/octeontx2: improve chunk pool performance 2019-11-26 07:49:30 +01:00
otx2_worker_dual.c replace hot attributes 2020-04-16 18:30:58 +02:00
otx2_worker_dual.h event/octeontx2: remove WFE from dual-slot dequeue 2020-04-04 13:56:52 +02:00
otx2_worker.c replace hot attributes 2020-04-16 18:30:58 +02:00
otx2_worker.h net/octeontx2: add inline IPsec Tx 2020-02-05 15:20:51 +01:00
rte_pmd_octeontx2_event_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00