Skip to content

Commit 383df63

Browse files
committed
Merge tag 'Wimplicit-fallthrough-clang-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux
Pull more fallthrough fixes from Gustavo Silva: "Fix maore fall-through warnings when building the kernel with clang and '-Wimplicit-fallthrough'" * tag 'Wimplicit-fallthrough-clang-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux: Input: Fix fall-through warning for Clang scsi: aic94xx: Fix fall-through warning for Clang i3c: master: cdns: Fix fall-through warning for Clang net/mlx4: Fix fall-through warning for Clang
2 parents b5e6d12 + f1469e5 commit 383df63

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

drivers/i3c/master/i3c-master-cdns.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,6 +1379,8 @@ static void cnds_i3c_master_demux_ibis(struct cdns_i3c_master *master)
13791379

13801380
case IBIR_TYPE_MR:
13811381
WARN_ON(IBIR_XFER_BYTES(ibir) || (ibir & IBIR_ERROR));
1382+
break;
1383+
13821384
default:
13831385
break;
13841386
}

drivers/input/joystick/sidewinder.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,7 @@ static int sw_connect(struct gameport *gameport, struct gameport_driver *drv)
660660
fallthrough;
661661
case 45: /* Ambiguous packet length */
662662
if (j <= 40) { /* ID length less or eq 40 -> FSP */
663+
fallthrough;
663664
case 43:
664665
sw->type = SW_ID_FSP;
665666
break;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2660,6 +2660,7 @@ int mlx4_FREE_RES_wrapper(struct mlx4_dev *dev, int slave,
26602660
case RES_XRCD:
26612661
err = xrcdn_free_res(dev, slave, vhcr->op_modifier, alop,
26622662
vhcr->in_param, &vhcr->out_param);
2663+
break;
26632664

26642665
default:
26652666
break;

drivers/scsi/aic94xx/aic94xx_sds.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,10 +718,12 @@ static void *asd_find_ll_by_id(void * const start, const u8 id0, const u8 id1)
718718
do {
719719
switch (id1) {
720720
default:
721-
if (el->id1 == id1)
721+
if (el->id1 == id1) {
722+
fallthrough;
722723
case 0xFF:
723724
if (el->id0 == id0)
724725
return el;
726+
}
725727
}
726728
el = start + le16_to_cpu(el->next);
727729
} while (el != start);

0 commit comments

Comments
 (0)