]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: acornscsi: Fix fall-through warning for clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 26 Jul 2021 20:33:53 +0000 (15:33 -0500)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 29 Jul 2021 17:51:16 +0000 (12:51 -0500)
commit017e9ae80808e709d95b0452e62e357230ae9e71
tree76536af26c9c7c44ac9144d226f5bf2688d16e84
parent24c87dcb50e5c7277c5d33a544eb2dd9d6a3f9a6
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 <lkp@intel.com>
Link: https://lore.kernel.org/lkml/202107260355.bF00i5bi-lkp@intel.com/
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/scsi/arm/acornscsi.c