linux_dsm_epyc7002/drivers/net/ethernet/intel/igb
Gustavo A. R. Silva 42277cedba igb: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

This patch fixes the following warning:

drivers/net/ethernet/intel/igb/e1000_82575.c: In function ‘igb_get_invariants_82575’:
drivers/net/ethernet/intel/igb/e1000_82575.c:636:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
   if (igb_sgmii_uses_mdio_82575(hw)) {
      ^
drivers/net/ethernet/intel/igb/e1000_82575.c:642:2: note: here
  case E1000_CTRL_EXT_LINK_MODE_PCIE_SERDES:
  ^~~~

Warning level 3 was used: -Wimplicit-fallthrough=3

Notice that, in this particular case, the code comment is modified
in accordance with what GCC is expecting to find.

This patch is part of the ongoing efforts to enable
-Wimplicit-fallthrough.

Signed-off-by: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2019-05-28 15:52:37 -07:00
..
e1000_82575.c igb: mark expected switch fall-through 2019-05-28 15:52:37 -07:00
e1000_82575.h
e1000_defines.h
e1000_hw.h
e1000_i210.c
e1000_i210.h
e1000_mac.c
e1000_mac.h
e1000_mbx.c
e1000_mbx.h
e1000_nvm.c
e1000_nvm.h
e1000_phy.c
e1000_phy.h
e1000_regs.h
igb_ethtool.c
igb_hwmon.c
igb_main.c igb: mark expected switch fall-through 2019-05-28 15:48:42 -07:00
igb_ptp.c
igb.h
Makefile