mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 05:31:28 +00:00
qla2x00t: Use the fallthrough keyword to annotate switch/case fallthrough
This patch prevents that a compiler warning is reported when building this driver against kernel v5.14. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9500 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -419,7 +419,7 @@ qla2x00_update_portdb(struct device *dev,
|
||||
printk(KERN_INFO "Reconfiguring fabric on %ld\n",
|
||||
vha->host_no);
|
||||
qla2x00_configure_fabric(vha);
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
|
||||
default:
|
||||
printk(KERN_INFO "Resyncing loop on %ld\n",
|
||||
|
||||
@@ -885,7 +885,7 @@ skip_rio:
|
||||
case MBA_CHG_IN_CONNECTION: /* Change in connection mode */
|
||||
if (IS_QLA2100(ha))
|
||||
break;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case MBA_RESET: /* Reset */
|
||||
case MBA_SYSTEM_ERR: /* System Error */
|
||||
case MBA_REQ_TRANSFER_ERR: /* Request Transfer Error */
|
||||
@@ -2251,7 +2251,7 @@ void qla24xx_process_response_queue(struct scsi_qla_host *vha,
|
||||
case ABTS_RECV_24XX:
|
||||
/* ensure that the ATIO queue is empty */
|
||||
qla24xx_process_atio_queue(vha);
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case ABTS_RESP_24XX:
|
||||
case CTIO_TYPE7:
|
||||
case NOTIFY_ACK_TYPE:
|
||||
|
||||
@@ -2329,8 +2329,7 @@ qla2x00_write_optrom_data(struct scsi_qla_host *vha, uint8_t *buf,
|
||||
sec_mask = 0x10000;
|
||||
break;
|
||||
}
|
||||
/* Fall through... */
|
||||
|
||||
fallthrough;
|
||||
case 0x1f: /* Atmel flash. */
|
||||
/* 512k sector size. */
|
||||
if (flash_id == 0x13) {
|
||||
@@ -2338,8 +2337,7 @@ qla2x00_write_optrom_data(struct scsi_qla_host *vha, uint8_t *buf,
|
||||
sec_mask = 0x80000000;
|
||||
break;
|
||||
}
|
||||
/* Fall through... */
|
||||
|
||||
fallthrough;
|
||||
case 0x01: /* AMD flash. */
|
||||
if (flash_id == 0x38 || flash_id == 0x40 ||
|
||||
flash_id == 0x4f) {
|
||||
@@ -2371,7 +2369,7 @@ qla2x00_write_optrom_data(struct scsi_qla_host *vha, uint8_t *buf,
|
||||
sec_mask = 0x1e000;
|
||||
break;
|
||||
}
|
||||
/* Fall through... */
|
||||
fallthrough;
|
||||
default:
|
||||
/* Default to 16 kb sector size. */
|
||||
rest_addr = 0x3fff;
|
||||
|
||||
Reference in New Issue
Block a user