Skip to content

Commit eb4f520

Browse files
scsi: acornscsi: Fix fall-through warning for clang
Fix the following fallthrough warning (on ARM): drivers/scsi/arm/acornscsi.c:2651:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case res_success: ^ drivers/scsi/arm/acornscsi.c:2651:2: note: insert '__attribute__((fallthrough));' to silence this warning case res_success: ^ __attribute__((fallthrough)); drivers/scsi/arm/acornscsi.c:2651:2: note: insert 'break;' to avoid fall-through case res_success: ^ break; Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent 696e572 commit eb4f520

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/scsi/arm/acornscsi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2642,6 +2642,7 @@ int acornscsi_abort(struct scsi_cmnd *SCpnt)
26422642
//#endif
26432643
clear_bit(SCpnt->device->id * 8 +
26442644
(u8)(SCpnt->device->lun & 0x7), host->busyluns);
2645+
fallthrough;
26452646

26462647
/*
26472648
* We found the command, and cleared it out. Either

0 commit comments

Comments
 (0)