• Tony Nguyen's avatar
    ixgbevf: Resolve warnings for -Wimplicit-fallthrough · 80666035
    Tony Nguyen authored
    Additions to gcc 7 now warn whenever a switch statement falls through
    implicitly.  This patch adds explicit fall through comments to address the
    following warnings:
    
    drivers/net/ethernet/intel/ixgbevf/vf.c: In function ‘ixgbevf_get_reta_locked’:
    drivers/net/ethernet/intel/ixgbevf/vf.c:336:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
       if (hw->mac.type < ixgbe_mac_X550_vf)
          ^
    drivers/net/ethernet/intel/ixgbevf/vf.c:338:2: note: here
      default:
      ^~~~~~~
    drivers/net/ethernet/intel/ixgbevf/vf.c: In function ‘ixgbevf_get_rss_key_locked’:
    drivers/net/ethernet/intel/ixgbevf/vf.c:402:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
       if (hw->mac.type < ixgbe_mac_X550_vf)
          ^
    drivers/net/ethernet/intel/ixgbevf/vf.c:404:2: note: here
      default:
      ^~~~~~~
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    80666035
vf.c 27.2 KB