ea153cc853
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> |
||
---|---|---|
.. | ||
Makefile | ||
meson.build | ||
otx2_evdev_adptr.c | ||
otx2_evdev_irq.c | ||
otx2_evdev_selftest.c | ||
otx2_evdev_stats.h | ||
otx2_evdev.c | ||
otx2_evdev.h | ||
otx2_tim_evdev.c | ||
otx2_tim_evdev.h | ||
otx2_tim_worker.c | ||
otx2_tim_worker.h | ||
otx2_worker_dual.c | ||
otx2_worker_dual.h | ||
otx2_worker.c | ||
otx2_worker.h | ||
rte_pmd_octeontx2_event_version.map |