hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/scsi/arm/fas216.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/drivers/acorn/scsi/fas216.c
34 *
45 * Copyright (C) 1997-2003 Russell King
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 *
107 * Based on information in qlogicfas.c by Tom Zerucha, Michael Griffith, and
118 * other sources, including:
....@@ -606,6 +603,7 @@
606603 msgqueue_flush(&info->scsi.msgs);
607604 msgqueue_addmsg(&info->scsi.msgs, 1, MESSAGE_REJECT);
608605 info->scsi.phase = PHASE_MSGOUT_EXPECT;
606
+ fallthrough;
609607
610608 case async:
611609 dev->period = info->ifcfg.asyncperiod / 4;
....@@ -918,6 +916,7 @@
918916 fas216_done(info, DID_ABORT);
919917 break;
920918 }
919
+ fallthrough;
921920
922921 default: /* huh? */
923922 printk(KERN_ERR "scsi%d.%c: unexpected disconnect in phase %s\n",
....@@ -1414,6 +1413,8 @@
14141413 case STATE(STAT_STATUS, PHASE_DATAOUT): /* Data Out -> Status */
14151414 case STATE(STAT_STATUS, PHASE_DATAIN): /* Data In -> Status */
14161415 fas216_stoptransfer(info);
1416
+ fallthrough;
1417
+
14171418 case STATE(STAT_STATUS, PHASE_SELSTEPS):/* Sel w/ steps -> Status */
14181419 case STATE(STAT_STATUS, PHASE_MSGOUT): /* Message Out -> Status */
14191420 case STATE(STAT_STATUS, PHASE_COMMAND): /* Command -> Status */
....@@ -1425,6 +1426,8 @@
14251426 case STATE(STAT_MESGIN, PHASE_DATAOUT): /* Data Out -> Message In */
14261427 case STATE(STAT_MESGIN, PHASE_DATAIN): /* Data In -> Message In */
14271428 fas216_stoptransfer(info);
1429
+ fallthrough;
1430
+
14281431 case STATE(STAT_MESGIN, PHASE_COMMAND): /* Command -> Message In */
14291432 case STATE(STAT_MESGIN, PHASE_SELSTEPS):/* Sel w/ steps -> Message In */
14301433 case STATE(STAT_MESGIN, PHASE_MSGOUT): /* Message Out -> Message In */
....@@ -1578,6 +1581,7 @@
15781581 fas216_message(info);
15791582 break;
15801583 }
1584
+ fallthrough;
15811585
15821586 default:
15831587 fas216_log(info, 0, "internal phase %s for function done?"
....@@ -1960,6 +1964,7 @@
19601964 switch (where_from) {
19611965 case TYPE_QUEUE:
19621966 fas216_allocate_tag(info, SCpnt);
1967
+ fallthrough;
19631968 case TYPE_OTHER:
19641969 fas216_start_command(info, SCpnt);
19651970 break;