Message ID | d59c13880a70724c3645d96945bf8a128f835244.1543374820.git.gustavo@embeddedor.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | scsi: Mark expected switch fall-throughs | expand |
> -----Original Message----- > From: Gustavo A. R. Silva [mailto:gustavo@embeddedor.com] > Sent: Tuesday, November 27, 2018 9:26 PM > To: Adaptec OEM Raid Solutions <aacraid@microsemi.com> > Cc: James E.J. Bottomley <jejb@linux.ibm.com>; Martin K. Petersen > <martin.petersen@oracle.com>; linux-scsi@vger.kernel.org; linux- > kernel@vger.kernel.org; Gustavo A. R. Silva <gustavo@embeddedor.com> > Subject: [PATCH 04/41] scsi: aacraid: linit: Mark expected switch fall-through > > > In preparation to enabling -Wimplicit-fallthrough, mark switch cases where > we are expecting to fall through. > > Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> > --- > drivers/scsi/aacraid/linit.c | 1 + Reviewed-by: Dave Carroll <david.carroll@microsemi.com>
Gustavo A., > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. Applied to 4.21/scsi-queue.
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index 2d4e4ddc5ace..42defee90eb2 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c @@ -759,6 +759,7 @@ static int aac_eh_abort(struct scsi_cmnd* cmd) !(aac->raw_io_64) || ((cmd->cmnd[1] & 0x1f) != SAI_READ_CAPACITY_16)) break; + /* fall through */ case INQUIRY: case READ_CAPACITY: /*
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> --- drivers/scsi/aacraid/linit.c | 1 + 1 file changed, 1 insertion(+)