]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: core: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:32:32 +0000 (12:32 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 Dec 2020 17:59:47 +0000 (12:59 -0500)
commite7f2063969625841c688dd0f45a52d79317ecccf
tree032f7d3451705c7df223484015cff6b457fc2440
parent6c7655902c87a3a88b8b55d319bb80bf6d8a483a
scsi: target: core: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a couple of
warnings by explicitly adding a break statement and a fallthrough
pseudo-keyword instead of letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Link: https://lore.kernel.org/r/761d6f755e8a6f8a6daebd1e5c1394167e5c780a.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/target/target_core_iblock.c
drivers/target/target_core_pr.c