mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
ixgbe: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break statements instead of just letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
f83a0d0ada
commit
27e40255e5
4 changed files with 5 additions and 0 deletions
|
@ -1542,6 +1542,7 @@ s32 ixgbe_fdir_set_input_mask_82599(struct ixgbe_hw *hw,
|
||||||
switch (input_mask->formatted.vm_pool & 0x7F) {
|
switch (input_mask->formatted.vm_pool & 0x7F) {
|
||||||
case 0x0:
|
case 0x0:
|
||||||
fdirm |= IXGBE_FDIRM_POOL;
|
fdirm |= IXGBE_FDIRM_POOL;
|
||||||
|
break;
|
||||||
case 0x7F:
|
case 0x7F:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -1557,6 +1558,7 @@ s32 ixgbe_fdir_set_input_mask_82599(struct ixgbe_hw *hw,
|
||||||
hw_dbg(hw, " Error on src/dst port mask\n");
|
hw_dbg(hw, " Error on src/dst port mask\n");
|
||||||
return IXGBE_ERR_CONFIG;
|
return IXGBE_ERR_CONFIG;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case IXGBE_ATR_L4TYPE_MASK:
|
case IXGBE_ATR_L4TYPE_MASK:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -93,6 +93,7 @@ bool ixgbe_device_supports_autoneg_fc(struct ixgbe_hw *hw)
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,6 +132,7 @@ static void ixgbe_get_first_reg_idx(struct ixgbe_adapter *adapter, u8 tc,
|
||||||
else
|
else
|
||||||
*tx = (tc + 4) << 4; /* 96, 112 */
|
*tx = (tc + 4) << 4; /* 96, 112 */
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -999,6 +999,7 @@ static int ixgbe_ptp_set_timestamp_mode(struct ixgbe_adapter *adapter,
|
||||||
switch (config->tx_type) {
|
switch (config->tx_type) {
|
||||||
case HWTSTAMP_TX_OFF:
|
case HWTSTAMP_TX_OFF:
|
||||||
tsync_tx_ctl = 0;
|
tsync_tx_ctl = 0;
|
||||||
|
break;
|
||||||
case HWTSTAMP_TX_ON:
|
case HWTSTAMP_TX_ON:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue