numam-dpdk/drivers/event
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
..
dpaa build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
dpaa2 fix various typos found by Lintian 2020-04-25 19:53:47 +02:00
dsw event/dsw: avoid reusing previously recorded events 2020-05-04 13:48:28 +02:00
octeontx event/octeontx: support Rx/Tx checksum offload 2020-05-03 16:37:30 +02:00
octeontx2 event/octeontx2: fix build for O1 optimization 2020-05-11 21:09:20 +02:00
opdl build: add global libatomic dependency for 32-bit clang 2020-04-21 11:34:09 +02:00
skeleton build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
sw mk: ignore missing field initializers warning 2020-02-06 09:09:37 +01:00
Makefile event/octeontx2: add build infra and device probe 2019-07-03 06:55:44 +02:00
meson.build event/octeontx2: add build infra and device probe 2019-07-03 06:55:44 +02:00