diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-20 19:27:30 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-12-02 18:59:46 +0100 |
commit | 4c7bd259d66c9f94d3937bce3de5f16a8fd812a1 (patch) | |
tree | 8f06e9108dc8457680d75c378f18a67af7124847 /drivers/scsi/aha1740.c | |
parent | scsi: aic94xx: Fix fall-through warnings for Clang (diff) | |
download | linux-4c7bd259d66c9f94d3937bce3de5f16a8fd812a1.tar.xz linux-4c7bd259d66c9f94d3937bce3de5f16a8fd812a1.zip |
scsi: bfa: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding a couple break statements and replacing /*
fall through */ comments with the new pseudo-keyword macro fallthrough;
instead of just letting the code fall through to the next case.
Notice that Clang doesn't recognize /* fall through */ comments as implicit
fall-through markings.
Link: https://github.com/KSPP/linux/issues/115
Link: https://lore.kernel.org/r/2ae1cafd858238b85fc5e7fe5cc183843e21ec9f.1605896059.git.gustavoars@kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/aha1740.c')
0 files changed, 0 insertions, 0 deletions