Project

General

Profile

Actions

Bug #13887

open

ixgbe: clean up compiler warnings

Added by Toomas Soome almost 2 years ago. Updated almost 2 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Initially it was just about maybe uninitialized variables, but I took out other warnings too:

    Use ixgbe_fc_full for ixgbe_fc_default:
    ../../common/io/ixgbe/ixgbe_gld.c: In function 'ixgbe_m_getprop':
    ../../common/io/ixgbe/ixgbe_gld.c:593:3: error: enumeration value 'ixgbe_fc_default' not handled in switch [-Werror=switch]
      593 |   switch (hw->fc.requested_mode) {
          |   ^~~~~~

    ../../common/io/ixgbe/ixgbe_gld.c: In function 'ixgbe_m_propinfo':
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_STATUS' not handled in switch [-Werror=switch]
      700 |  switch (pr_num) {
          |  ^~~~~~
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_EN_AUTONEG' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_ZONE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_AUTOPUSH' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_ADV_1000HDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_EN_1000HDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_ADV_100HDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_EN_100HDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_ADV_10FDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_EN_10FDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_ADV_10HDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_EN_10HDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_ADV_100T4_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_EN_100T4_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_IPTUN_HOPLIMIT' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_IPTUN_ENCAPLIMIT' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_ESSID' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_BSSID' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_BSSTYPE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_LINKSTATUS' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_DESIRED_RATES' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_SUPPORTED_RATES' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_AUTH_MODE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_ENCRYPTION' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_RSSI' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_PHY_CONFIG' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_CAPABILITY' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_WPA' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_SCANRESULTS' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_POWER_MODE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_RADIO' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_ESS_LIST' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_KEY_TAB' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_CREATE_IBSS' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_SETOPTIE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_DELKEY' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_KEY' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_WL_MLME' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_TAGMODE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_PVID' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_LLIMIT' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_LDECAY' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_RESOURCE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_RESOURCE_EFF' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_RXRINGSRANGE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_TXRINGSRANGE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_MAX_TX_RINGS_AVAIL' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_MAX_RX_RINGS_AVAIL' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_MAX_RXHWCLNT_AVAIL' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_MAX_TXHWCLNT_AVAIL' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_IB_LINKMODE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_VN_PROMISC_FILTERED' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_SECONDARY_ADDRS' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_ADV_40GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_EN_40GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_ADV_100GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_EN_100GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_ADV_25GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_EN_25GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_ADV_50GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_EN_50GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_EN_FEC_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:700:2: error: enumeration value 'MAC_PROP_ADV_FEC_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c: In function 'ixgbe_param_locked':
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_PRIVATE' not handled in switch [-Werror=switch]
      844 |  switch (pr_num) {
          |  ^~~~~~
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_DUPLEX' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_SPEED' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_STATUS' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_EN_AUTONEG' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_MTU' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ZONE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_AUTOPUSH' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_1000FDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_1000HDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_EN_1000HDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_100FDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_100HDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_EN_100HDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_10FDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_EN_10FDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_10HDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_EN_10HDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_100T4_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_EN_100T4_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_IPTUN_HOPLIMIT' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_IPTUN_ENCAPLIMIT' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_ESSID' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_BSSID' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_BSSTYPE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_LINKSTATUS' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_DESIRED_RATES' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_SUPPORTED_RATES' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_AUTH_MODE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_ENCRYPTION' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_RSSI' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_PHY_CONFIG' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_CAPABILITY' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_WPA' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_SCANRESULTS' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_POWER_MODE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_RADIO' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_ESS_LIST' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_KEY_TAB' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_CREATE_IBSS' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_SETOPTIE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_DELKEY' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_KEY' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_WL_MLME' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_TAGMODE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_10GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_PVID' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_LLIMIT' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_LDECAY' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_RESOURCE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_RESOURCE_EFF' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_RXRINGSRANGE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_TXRINGSRANGE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_MAX_TX_RINGS_AVAIL' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_MAX_RX_RINGS_AVAIL' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_MAX_RXHWCLNT_AVAIL' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_MAX_TXHWCLNT_AVAIL' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_IB_LINKMODE' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_VN_PROMISC_FILTERED' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_SECONDARY_ADDRS' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_40GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_EN_40GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_100GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_EN_100GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_2500FDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_5000FDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_25GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_EN_25GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_50GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_EN_50GFDX_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_EN_FEC_CAP' not handled in switch [-Werror=switch]
    ../../common/io/ixgbe/ixgbe_gld.c:844:2: error: enumeration value 'MAC_PROP_ADV_FEC_CAP' not handled in switch [-Werror=switch]

    ../../common/io/ixgbe/ixgbe_rx.c: In function 'ixgbe_lro_bind':
    ../../common/io/ixgbe/ixgbe_rx.c:334:35: error: 'lro_next' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      334 |   current_rcb = rx_data->work_list[lro_next];
          |                                   ^
    ../../common/io/ixgbe/ixgbe_rx.c: In function 'ixgbe_lro_copy':
    ../../common/io/ixgbe/ixgbe_rx.c:428:35: error: 'lro_next' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      428 |   current_rcb = rx_data->work_list[lro_next];
          |                                   ^
    ../../common/io/ixgbe/ixgbe_rx.c: In function 'ixgbe_lro_get_start':
    ../../common/io/ixgbe/ixgbe_rx.c:485:9: error: 'lro_start' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      485 |  return (lro_start);
          |         ^

    ../../common/io/ixgbe/ixgbe_tx.c: In function 'ixgbe_ring_tx':
    ../../common/io/ixgbe/ixgbe_tx.c:385:10: error: 'tcb' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      385 |  tcb->mp = mp;
          |  ~~~~~~~~^~~~
    ../../common/io/ixgbe/ixgbe_tx.c:468:15: error: 'hdr_len' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      468 |    desc_num = ixgbe_tx_bind(tx_ring, tcb, pull_mp,
          |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      469 |        mbsize - hdr_len);
          |        ~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

Built on both sparc and x86. I do not have hardware to test with.

Actions #1

Updated by Electric Monk almost 2 years ago

  • Gerrit CR set to 1554
Actions

Also available in: Atom PDF