]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: bfa: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:27:30 +0000 (12:27 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 Dec 2020 17:59:46 +0000 (12:59 -0500)
commit10aca33aec50710e6a0f28b51f459c25fa57cced
tree8f06e9108dc8457680d75c378f18a67af7124847
parent4413a8481c3a37c613e61beb340b603d18ca17dc
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>
drivers/scsi/bfa/bfa_fcs_lport.c
drivers/scsi/bfa/bfa_ioc.c