From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:09:24
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114889 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/8390/axnet_cs.c | 1 +
1 file changed, 1 insertion(+)
@@ -610,6 +610,7 @@ static int axnet_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)switch(cmd){caseSIOCGMIIPHY:data->phy_id=info->phy_id;+/* Fall through */caseSIOCGMIIREG:/* Read MII PHY register. */data->val_out=mdio_read(mii_addr,data->phy_id,data->reg_num&0x1f);return0;
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:13:20
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 143135 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/cavium/liquidio/lio_main.c | 1 +
1 file changed, 1 insertion(+)
@@ -2209,6 +2209,7 @@ static int liquidio_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)caseSIOCSHWTSTAMP:if(lio->oct_dev->ptp_enable)returnhwtstamp_ioctl(netdev,ifr);+/* fall through */default:return-EOPNOTSUPP;}
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:13:55
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114777 ("Missing break in switch")
Addresses-Coverity-ID: 114778 ("Missing break in switch")
Addresses-Coverity-ID: 114779 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 3 +++
1 file changed, 3 insertions(+)
@@ -7504,10 +7504,13 @@ int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port,switch(nmac){case5:memcpy(mac+24,c.nmac3,sizeof(c.nmac3));+/* Fall through */case4:memcpy(mac+18,c.nmac2,sizeof(c.nmac2));+/* Fall through */case3:memcpy(mac+12,c.nmac1,sizeof(c.nmac1));+/* Fall through */case2:memcpy(mac+6,c.nmac0,sizeof(c.nmac0));}
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:13:57
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114910 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/chelsio/cxgb4/l2t.c | 1 +
1 file changed, 1 insertion(+)
@@ -231,6 +231,7 @@ int cxgb4_l2t_send(struct net_device *dev, struct sk_buff *skb,if(e->state==L2T_STATE_STALE)e->state=L2T_STATE_VALID;spin_unlock_bh(&e->lock);+/* fall through */caseL2T_STATE_VALID:/* fast-path, send the packet on */returnt4_ofld_send(adap,skb);caseL2T_STATE_RESOLVING:
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:14:30
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114780 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/chelsio/cxgb3/l2t.c | 1 +
1 file changed, 1 insertion(+)
@@ -136,6 +136,7 @@ int t3_l2t_send_slow(struct t3cdev *dev, struct sk_buff *skb,if(e->state==L2T_STATE_STALE)e->state=L2T_STATE_VALID;spin_unlock_bh(&e->lock);+/* fall through */caseL2T_STATE_VALID:/* fast-path, send the packet on */returncxgb3_ofld_send(dev,skb);caseL2T_STATE_RESOLVING:
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:15:44
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114781 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c | 1 +
1 file changed, 1 insertion(+)
@@ -527,6 +527,7 @@ static int nicvf_get_rss_hash_opts(struct nicvf *nic,caseSCTP_V4_FLOW:caseSCTP_V6_FLOW:info->data|=RXH_L4_B_0_1|RXH_L4_B_2_3;+/* Fall through */caseIPV4_FLOW:caseIPV6_FLOW:info->data|=RXH_IP_SRC|RXH_IP_DST;
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:15:46
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114782 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/dec/tulip/tulip_core.c | 1 +
1 file changed, 1 insertion(+)
@@ -923,6 +923,7 @@ static int private_ioctl (struct net_device *dev, struct ifreq *rq, int cmd)data->phy_id=1;elsereturn-ENODEV;+/* Fall through */caseSIOCGMIIREG:/* Read MII PHY register. */if(data->phy_id==32&&(tp->flags&HAS_NWAY)){
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:16:18
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114784 ("Missing break in switch")
Addresses-Coverity-ID: 114785 ("Missing break in switch")
Addresses-Coverity-ID: 114786 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/dec/tulip/de4x5.c | 6 ++++++
1 file changed, 6 insertions(+)
@@ -3204,6 +3204,8 @@ srom_map_media(struct net_device *dev)caseSROM_10BASETF:if(!lp->params.fdx)return-1;lp->fdx=true;+/* fall through */+caseSROM_10BASET:if(lp->params.fdx&&!lp->fdx)return-1;if((lp->chipset==DC21140)||((lp->chipset&~0x00ff)==DC2114x)){
@@ -3224,6 +3226,8 @@ srom_map_media(struct net_device *dev)caseSROM_100BASETF:if(!lp->params.fdx)return-1;lp->fdx=true;+/* fall through */+caseSROM_100BASET:if(lp->params.fdx&&!lp->fdx)return-1;lp->media=_100Mb;
@@ -3236,6 +3240,8 @@ srom_map_media(struct net_device *dev)caseSROM_100BASEFF:if(!lp->params.fdx)return-1;lp->fdx=true;+/* fall through */+caseSROM_100BASEF:if(lp->params.fdx&&!lp->fdx)return-1;lp->media=_100Mb;
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:17:18
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114787 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/emulex/benet/be_ethtool.c | 1 +
1 file changed, 1 insertion(+)
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:18:00
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114788 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 1 +
1 file changed, 1 insertion(+)
@@ -307,6 +307,7 @@ static int __lb_setup(struct net_device *ndev,break;caseMAC_LOOP_PHY_NONE:ret=hns_nic_config_phy_loopback(phy_dev,0x0);+/* fall through */caseMAC_LOOP_NONE:if(!ret&&h->dev->ops->set_loopback){if(priv->ae_handle->phy_if!=PHY_INTERFACE_MODE_XGMII)
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:18:41
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114789 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 1 +
1 file changed, 1 insertion(+)
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:19:51
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114790 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/intel/i40e/i40e_main.c | 1 +
1 file changed, 1 insertion(+)
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:20:31
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114791 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/intel/i40e/i40e_txrx.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -2253,9 +2253,10 @@ static struct sk_buff *i40e_run_xdp(struct i40e_ring *rx_ring,break;default:bpf_warn_invalid_xdp_action(act);+/* fall through */caseXDP_ABORTED:trace_xdp_exception(rx_ring->netdev,xdp_prog,act);-/* fallthrough -- handle aborts by dropping packet */+/* fall through -- handle aborts by dropping packet */caseXDP_DROP:result=I40E_XDP_CONSUMED;break;
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:21:16
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114792 ("Missing break in switch")
Addresses-Coverity-ID: 114793 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/mellanox/mlx4/mcg.c | 2 ++
1 file changed, 2 insertions(+)
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:21:49
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114794 ("Missing break in switch")
Addresses-Coverity-ID: 114795 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/mellanox/mlx4/en_rx.c | 2 ++
1 file changed, 2 insertions(+)
@@ -795,8 +795,10 @@ int mlx4_en_process_rx_cq(struct net_device *dev, struct mlx4_en_cq *cq, int budgotoxdp_drop_no_cnt;/* Drop on xmit failure */default:bpf_warn_invalid_xdp_action(act);+/* fall through */caseXDP_ABORTED:trace_xdp_exception(dev,xdp_prog,act);+/* fall through */caseXDP_DROP:ring->xdp_drop++;xdp_drop_no_cnt:
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:22:31
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 200521 ("Missing break in switch")
Addresses-Coverity-ID: 114797 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/intel/igb/igb_main.c | 2 ++
1 file changed, 2 insertions(+)
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:23:05
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114799 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/intel/igb/e1000_82575.c | 1 +
1 file changed, 1 insertion(+)
@@ -1708,6 +1708,7 @@ static s32 igb_setup_serdes_link_82575(struct e1000_hw *hw)caseE1000_CTRL_EXT_LINK_MODE_1000BASE_KX:/* disable PCS autoneg and support parallel detect only */pcs_autoneg=false;+/* fall through */default:if(hw->mac.type==e1000_82575||hw->mac.type==e1000_82576){
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:23:39
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114800 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/intel/igb/e1000_phy.c | 1 +
1 file changed, 1 insertion(+)
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:24:12
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114801 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/intel/igbvf/netdev.c | 1 +
1 file changed, 1 insertion(+)
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:24:45
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114796 ("Missing break in switch")
Addresses-Coverity-ID: 114804 ("Missing break in switch")
Addresses-Coverity-ID: 114806 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/neterion/vxge/vxge-config.c | 3 +++
1 file changed, 3 insertions(+)
@@ -3783,17 +3783,20 @@ vxge_hw_rts_rth_data0_data1_get(u32 j, u64 *data0, u64 *data1,VXGE_HW_RTS_ACCESS_STEER_DATA0_RTH_ITEM0_ENTRY_EN|VXGE_HW_RTS_ACCESS_STEER_DATA0_RTH_ITEM0_BUCKET_DATA(itable[j]);+/* fall through */case2:*data0|=VXGE_HW_RTS_ACCESS_STEER_DATA0_RTH_ITEM1_BUCKET_NUM(j)|VXGE_HW_RTS_ACCESS_STEER_DATA0_RTH_ITEM1_ENTRY_EN|VXGE_HW_RTS_ACCESS_STEER_DATA0_RTH_ITEM1_BUCKET_DATA(itable[j]);+/* fall through */case3:*data1=VXGE_HW_RTS_ACCESS_STEER_DATA1_RTH_ITEM0_BUCKET_NUM(j)|VXGE_HW_RTS_ACCESS_STEER_DATA1_RTH_ITEM0_ENTRY_EN|VXGE_HW_RTS_ACCESS_STEER_DATA1_RTH_ITEM0_BUCKET_DATA(itable[j]);+/* fall through */case4:*data1|=VXGE_HW_RTS_ACCESS_STEER_DATA1_RTH_ITEM1_BUCKET_NUM(j)|
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:25:32
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114808 ("Missing break in switch")
Addresses-Coverity-ID: 114802 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c | 2 ++
1 file changed, 2 insertions(+)
@@ -91,9 +91,11 @@ bool mlx5e_xdp_handle(struct mlx5e_rq *rq, struct mlx5e_dma_info *di,returntrue;default:bpf_warn_invalid_xdp_action(act);+/* fall through */caseXDP_ABORTED:xdp_abort:trace_xdp_exception(rq->netdev,prog,act);+/* fall through */caseXDP_DROP:rq->stats->xdp_drop++;returntrue;
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:26:02
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Notice that in this particular case, I replaced the code comments with
a proper "fall through" annotation, which is what GCC is expecting
to find.
Addresses-Coverity-ID: 114809 ("Missing break in switch")
Addresses-Coverity-ID: 114810 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/qlogic/qed/qed_dev.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -1709,14 +1709,14 @@ int qed_hw_init(struct qed_dev *cdev, struct qed_hw_init_params *p_params)p_hwfn->hw_info.hw_mode);if(rc)break;-/* Fall into */+/* Fall through */caseFW_MSG_CODE_DRV_LOAD_PORT:rc=qed_hw_init_port(p_hwfn,p_hwfn->p_main_ptt,p_hwfn->hw_info.hw_mode);if(rc)break;-/* Fall into */+/* Fall through */caseFW_MSG_CODE_DRV_LOAD_FUNCTION:rc=qed_hw_init_pf(p_hwfn,p_hwfn->p_main_ptt,p_params->p_tunn,
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:26:55
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 1410182 ("Missing break in switch")
Addresses-Coverity-ID: 1410183 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/qlogic/netxen/netxen_nic_ethtool.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -167,9 +167,9 @@ netxen_nic_get_link_ksettings(struct net_device *dev,caseNETXEN_BRDTYPE_P3_REF_QG:caseNETXEN_BRDTYPE_P3_4_GB:caseNETXEN_BRDTYPE_P3_4_GB_MM:-supported|=SUPPORTED_Autoneg;advertising|=ADVERTISED_Autoneg;+/* fall through */caseNETXEN_BRDTYPE_P2_SB31_10G_CX4:caseNETXEN_BRDTYPE_P3_10G_CX4:caseNETXEN_BRDTYPE_P3_10G_CX4_LP:
@@ -198,6 +198,7 @@ netxen_nic_get_link_ksettings(struct net_device *dev,supported|=SUPPORTED_TP;check_sfp_module=netif_running(dev)&&adapter->has_link_events;+/* fall through */caseNETXEN_BRDTYPE_P2_SB31_10G:caseNETXEN_BRDTYPE_P3_10G_XFP:supported|=SUPPORTED_FIBRE;
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:27:42
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 1384501 ("Missing break in switch")
Addresses-Coverity-ID: 1398869 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/qlogic/qede/qede_fp.c | 2 ++
1 file changed, 2 insertions(+)
@@ -1119,8 +1119,10 @@ static bool qede_rx_xdp(struct qede_dev *edev,default:bpf_warn_invalid_xdp_action(act);+/* Fall through */caseXDP_ABORTED:trace_xdp_exception(edev->ndev,prog,act);+/* Fall through */caseXDP_DROP:qede_recycle_rx_bd_ring(rxq,cqe->bd_num);}
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:28:25
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 1410181 ("Missing break in switch")
Addresses-Coverity-ID: 1410184 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -351,9 +351,9 @@ static int qlcnic_82xx_get_link_ksettings(struct qlcnic_adapter *adapter,caseQLCNIC_BRDTYPE_P3P_REF_QG:caseQLCNIC_BRDTYPE_P3P_4_GB:caseQLCNIC_BRDTYPE_P3P_4_GB_MM:-supported|=SUPPORTED_Autoneg;advertising|=ADVERTISED_Autoneg;+/* fall through */caseQLCNIC_BRDTYPE_P3P_10G_CX4:caseQLCNIC_BRDTYPE_P3P_10G_CX4_LP:caseQLCNIC_BRDTYPE_P3P_10000_BASE_T:
@@ -377,6 +377,7 @@ static int qlcnic_82xx_get_link_ksettings(struct qlcnic_adapter *adapter,supported|=SUPPORTED_TP;check_sfp_module=netif_running(adapter->netdev)&&ahw->has_link_events;+/* fall through */caseQLCNIC_BRDTYPE_P3P_10G_XFP:supported|=SUPPORTED_FIBRE;advertising|=ADVERTISED_FIBRE;
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:29:20
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114811 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/qlogic/qlge/qlge_mpi.c | 1 +
1 file changed, 1 insertion(+)
@@ -1176,6 +1176,7 @@ void ql_mpi_idc_work(struct work_struct *work)caseMB_CMD_PORT_RESET:caseMB_CMD_STOP_FW:ql_link_off(qdev);+/* Fall through */caseMB_CMD_SET_PORT_CFG:/* Signal the resulting link up AEN*thattheframeroutingandmacaddr
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:30:26
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114891 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/alteon/acenic.c | 1 +
1 file changed, 1 insertion(+)
@@ -551,6 +551,7 @@ static int acenic_probe_one(struct pci_dev *pdev,ap->name);break;}+/* Fall through */casePCI_VENDOR_ID_SGI:printk(KERN_INFO"%s: SGI AceNIC ",ap->name);break;
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:30:29
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 1357414 ("Missing break in switch")
Addresses-Coverity-ID: 1357415 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c | 2 ++
1 file changed, 2 insertions(+)
@@ -319,6 +319,7 @@ static int sxgbe_get_rss_hash_opts(struct sxgbe_priv_data *priv,caseTCP_V4_FLOW:caseUDP_V4_FLOW:cmd->data|=RXH_L4_B_0_1|RXH_L4_B_2_3;+/* Fall through */caseSCTP_V4_FLOW:caseAH_ESP_V4_FLOW:caseAH_V4_FLOW:
@@ -329,6 +330,7 @@ static int sxgbe_get_rss_hash_opts(struct sxgbe_priv_data *priv,caseTCP_V6_FLOW:caseUDP_V6_FLOW:cmd->data|=RXH_L4_B_0_1|RXH_L4_B_2_3;+/* Fall through */caseSCTP_V6_FLOW:caseAH_ESP_V6_FLOW:caseAH_V6_FLOW:
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:31:21
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 1384500 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/sfc/falcon/ethtool.c | 1 +
1 file changed, 1 insertion(+)
@@ -963,6 +963,7 @@ ef4_ethtool_get_rxnfc(struct net_device *net_dev,switch(info->flow_type){caseTCP_V4_FLOW:info->data|=RXH_L4_B_0_1|RXH_L4_B_2_3;+/* Fall through */caseUDP_V4_FLOW:caseSCTP_V4_FLOW:caseAH_ESP_V4_FLOW:
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:31:51
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 141440 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/ti/tlan.c | 1 +
1 file changed, 1 insertion(+)
@@ -966,6 +966,7 @@ static int tlan_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)switch(cmd){caseSIOCGMIIPHY:/* get address of MII PHY in use. */data->phy_id=phy;+/* fall through */caseSIOCGMIIREG:/* read MII PHY register. */
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:32:24
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114813 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/ti/cpts.c | 1 +
1 file changed, 1 insertion(+)
@@ -161,6 +161,7 @@ static int cpts_fifo_read(struct cpts *cpts, int match)*/break;}+/* fall through */caseCPTS_EV_PUSH:caseCPTS_EV_RX:list_del_init(&event->list);
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:35:27
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/cadence/macb_ptp.c | 1 +
1 file changed, 1 insertion(+)
@@ -466,6 +466,7 @@ int gem_set_hwtst(struct net_device *dev, struct ifreq *ifr, int cmd)caseHWTSTAMP_TX_ONESTEP_SYNC:if(gem_ptp_set_one_step_sync(bp,1)!=0)return-ERANGE;+/* fall through */caseHWTSTAMP_TX_ON:tx_bd_control=TSTAMP_ALL_FRAMES;break;
From: Gustavo A. R. Silva <hidden> Date: 2018-08-07 23:35:27
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114878 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
---
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -1729,8 +1729,8 @@ static int bnxt_async_event_process(struct bnxt *bp,speed);}set_bit(BNXT_LINK_SPEED_CHNG_SP_EVENT,&bp->sp_event);-/* fall through */}+/* fall through */caseASYNC_EVENT_CMPL_EVENT_ID_LINK_STATUS_CHANGE:set_bit(BNXT_LINK_CHNG_SP_EVENT,&bp->sp_event);break;
From: David Miller <davem@davemloft.net> Date: 2018-08-08 00:59:41
From: "Gustavo A. R. Silva" <redacted>
Date: Tue, 7 Aug 2018 18:09:00 -0500
In preparation to enabling -Wimplicit-fallthrough, this patchset aims
to add some annotations in order to mark switch cases where we are
expecting to fall through.
Ok, I went through all of these and they look good.
If any are not correct we can revert/fix.
Series applied, thanks.
From: Gustavo A. R. Silva <hidden> Date: 2018-08-08 16:28:04
On 8/7/18 7:59 PM, David Miller wrote:
From: "Gustavo A. R. Silva" <redacted>
Date: Tue, 7 Aug 2018 18:09:00 -0500
quoted
In preparation to enabling -Wimplicit-fallthrough, this patchset aims
to add some annotations in order to mark switch cases where we are
expecting to fall through.
Ok, I went through all of these and they look good.
If any are not correct we can revert/fix.
Yep. If anything is reported, I'll take a look right away.
On Tue, Aug 7, 2018 at 4:25 PM, Gustavo A. R. Silva
[off-list ref] wrote:
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 114808 ("Missing break in switch")
Addresses-Coverity-ID: 114802 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <redacted>
@@ -91,9 +91,11 @@ bool mlx5e_xdp_handle(struct mlx5e_rq *rq, struct mlx5e_dma_info *di,returntrue;default:bpf_warn_invalid_xdp_action(act);+/* fall through */caseXDP_ABORTED:xdp_abort:trace_xdp_exception(rq->netdev,prog,act);+/* fall through */caseXDP_DROP:rq->stats->xdp_drop++;returntrue;--