numam-dpdk/drivers/net/ena
Ferruh Yigit 5f267cb01b net/ena: fix build for 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:
.../drivers/net/ena/ena_ethdev.c: In function ‘eth_ena_dev_init’:
.../drivers/net/ena/ena_ethdev.c:1815:20:
    error: ‘wd_state’ may be used uninitialized in this function
           [-Werror=maybe-uninitialized]
 1815 |  adapter->wd_state = wd_state;
      |  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~

This looks like false positive, fixing by assigning initial value to
'wd_state' variable.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Michal Krawczyk <mk@semihalf.com>
2020-05-11 19:21:31 +02:00
..
base net/ena/base: update generation date and commit 2020-04-21 13:57:07 +02:00
ena_ethdev.c net/ena: fix build for O1 optimization 2020-05-11 19:21:31 +02:00
ena_ethdev.h net/ena: use macros for ring index operations 2020-04-21 13:57:07 +02:00
ena_logs.h net/ena: change license clause to SPDX tags 2019-10-07 15:00:56 +02:00
ena_platform.h net/ena: change license clause to SPDX tags 2019-10-07 15:00:56 +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
rte_pmd_ena_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00