Skip to content

Commit 6a7391e

Browse files
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: KSPP#115 Link: https://lore.kernel.org/linux-mm/[email protected]/ Reported-by: kernel test robot <[email protected]> Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent e4e737b commit 6a7391e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/scsi/st.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3823,6 +3823,7 @@ static long st_ioctl(struct file *file, unsigned int cmd_in, unsigned long arg)
38233823
case CDROM_SEND_PACKET:
38243824
if (!capable(CAP_SYS_RAWIO))
38253825
return -EPERM;
3826+
break;
38263827
default:
38273828
break;
38283829
}

0 commit comments

Comments
 (0)