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:
Bart Van Assche
2021-09-03 02:35:53 +00:00
parent 078e1b774c
commit 309d11589a
3 changed files with 6 additions and 8 deletions

View File

@@ -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",

View File

@@ -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:

View File

@@ -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;