summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-06-03 21:27:52 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2021-06-07 22:22:53 -0400
commit61f4f11b48f9b0cd36e88825d5a59d5fda7ec957 (patch)
tree7cdd78578f901daa125d5dee770ea2a21e8bf4f5
parent6f7151729647e58ac7c522081255fd0c07b38105 (diff)
downloadlinux-stable-61f4f11b48f9b0cd36e88825d5a59d5fda7ec957.tar.gz
linux-stable-61f4f11b48f9b0cd36e88825d5a59d5fda7ec957.tar.bz2
linux-stable-61f4f11b48f9b0cd36e88825d5a59d5fda7ec957.zip
scsi: NCR5380: Fix fall-through warning for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a fall-through warning by replacing a /* fallthrough */ comment with the new pseudo-keyword macro fallthrough; Link: https://github.com/KSPP/linux/issues/115 Link: https://lore.kernel.org/r/20210604022752.GA168289@embeddedor Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/NCR5380.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c
index 8aa964cd54df..3baadd068768 100644
--- a/drivers/scsi/NCR5380.c
+++ b/drivers/scsi/NCR5380.c
@@ -1816,7 +1816,7 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance)
switch (tmp) {
case ABORT:
set_host_byte(cmd, DID_ABORT);
- /* fallthrough */
+ fallthrough;
case COMMAND_COMPLETE:
/* Accept message by clearing ACK */
sink = 1;