projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f71517
)
scsi: NCR5380: Fix fall-through warning for Clang
author
Gustavo A. R. Silva
<gustavoars@kernel.org>
Fri, 4 Jun 2021 02:27:52 +0000
(21:27 -0500)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Tue, 8 Jun 2021 02:22:53 +0000
(22:22 -0400)
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>
drivers/scsi/NCR5380.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/NCR5380.c
b/drivers/scsi/NCR5380.c
index 8aa964cd54dfe6e4e26a4f923ba09a691c5d2010..3baadd0687688662ad5bf4be17e8c2f7fb8381cb 100644
(file)
--- 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;