]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: st: Fix fall-through warning for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 13 Sep 2021 22:08:48 +0000 (17:08 -0500)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Wed, 13 Oct 2021 19:47:33 +0000 (14:47 -0500)
commitd97d540c14dccc5b2c9c0c2528345a9d6b6fdec9
tree0bcb3ca39ff8099f623d9a728deb959bcbb07e75
parentfa5d4460cfe6a4ab811a36d49fe44ccb61944b70
scsi: st: Fix fall-through warning for Clang

Fix the following fallthrough warning:

drivers/scsi/st.c:3826:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
drivers/scsi/st.c:3826:2: note: insert 'break;' to avoid fall-through

This helps with the ongoing efforts to globally enable
-Wimplicit-fallthrough for Clang.

Link: https://github.com/KSPP/linux/issues/115
Link: https://lore.kernel.org/linux-mm/202109070707.4pPukuYB-lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/scsi/st.c