Skip to content

Commit 5e619d7

Browse files
GustavoARSilvadavem330
authored andcommitted
net/mlx4: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a02d26f commit 5e619d7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

drivers/net/ethernet/mellanox/mlx4/en_rx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,10 +806,10 @@ int mlx4_en_process_rx_cq(struct net_device *dev, struct mlx4_en_cq *cq, int bud
806806
goto xdp_drop_no_cnt; /* Drop on xmit failure */
807807
default:
808808
bpf_warn_invalid_xdp_action(act);
809-
/* fall through */
809+
fallthrough;
810810
case XDP_ABORTED:
811811
trace_xdp_exception(dev, xdp_prog, act);
812-
/* fall through */
812+
fallthrough;
813813
case XDP_DROP:
814814
ring->xdp_drop++;
815815
xdp_drop_no_cnt:

drivers/net/ethernet/mellanox/mlx4/eq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ static int mlx4_eq_int(struct mlx4_dev *dev, struct mlx4_eq *eq)
558558
mlx4_dbg(dev, "%s: MLX4_EVENT_TYPE_SRQ_LIMIT. srq_no=0x%x, eq 0x%x\n",
559559
__func__, be32_to_cpu(eqe->event.srq.srqn),
560560
eq->eqn);
561-
/* fall through */
561+
fallthrough;
562562
case MLX4_EVENT_TYPE_SRQ_CATAS_ERROR:
563563
if (mlx4_is_master(dev)) {
564564
/* forward only to slave owning the SRQ */

drivers/net/ethernet/mellanox/mlx4/mcg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ int mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
14121412
case MLX4_STEERING_MODE_A0:
14131413
if (prot == MLX4_PROT_ETH)
14141414
return 0;
1415-
/* fall through */
1415+
fallthrough;
14161416

14171417
case MLX4_STEERING_MODE_B0:
14181418
if (prot == MLX4_PROT_ETH)
@@ -1442,7 +1442,7 @@ int mlx4_multicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
14421442
case MLX4_STEERING_MODE_A0:
14431443
if (prot == MLX4_PROT_ETH)
14441444
return 0;
1445-
/* fall through */
1445+
fallthrough;
14461446

14471447
case MLX4_STEERING_MODE_B0:
14481448
if (prot == MLX4_PROT_ETH)

0 commit comments

Comments
 (0)