summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_sup.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2017-12-07 16:02:46 -0800
committerMartin K. Petersen <martin.petersen@oracle.com>2017-12-11 21:50:29 -0500
commit81881861ae10ef6f20388bf00c4b6cf1115ac6fc (patch)
tree2691253bc621ccea2eb718fb3ff1cbc6594a7eda /drivers/scsi/qla2xxx/qla_sup.c
parentf280c77dc9bb850bc49a126ef5a088e7340a61b6 (diff)
downloadop-kernel-dev-81881861ae10ef6f20388bf00c4b6cf1115ac6fc.zip
op-kernel-dev-81881861ae10ef6f20388bf00c4b6cf1115ac6fc.tar.gz
scsi: qla2xxx: Suppress gcc 7 fall-through warnings
Avoid that building with gcc 7 and W=1 triggers warnings similar to the following: drivers/scsi/qla2xxx/qla_isr.c:1189:27: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Cc: Himanshu Madhani <himanshu.madhani@cavium.com> Cc: Quinn Tran <quinn.tran@cavium.com> Cc: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_sup.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_sup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_sup.c b/drivers/scsi/qla2xxx/qla_sup.c
index b4336e0..d2db86e 100644
--- a/drivers/scsi/qla2xxx/qla_sup.c
+++ b/drivers/scsi/qla2xxx/qla_sup.c
@@ -2461,6 +2461,7 @@ qla2x00_write_optrom_data(struct scsi_qla_host *vha, uint8_t *buf,
sec_mask = 0x1e000;
break;
}
+ /* fall through */
default:
/* Default to 16 kb sector size. */
rest_addr = 0x3fff;
OpenPOWER on IntegriCloud