Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390: Fix fall-through warnings for Clang

Fix the following fallthrough warnings:

drivers/s390/net/ctcm_fsms.c:1457:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
drivers/s390/net/qeth_l3_main.c:437:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
drivers/s390/char/tape_char.c:374:4: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
arch/s390/kernel/uprobes.c:129:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]

Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>

+3 -2
+1
arch/s390/kernel/uprobes.c
··· 126 126 case DIE_SSTEP: 127 127 if (uprobe_post_sstep_notifier(regs)) 128 128 return NOTIFY_STOP; 129 + break; 129 130 default: 130 131 break; 131 132 }
-2
drivers/s390/char/tape_char.c
··· 371 371 case MTSEEK: 372 372 if (device->required_tapemarks) 373 373 tape_std_terminate_write(device); 374 - default: 375 - ; 376 374 } 377 375 rc = tape_mtop(device, op.mt_op, op.mt_count); 378 376
+1
drivers/s390/net/ctcm_fsms.c
··· 1454 1454 get_ccwdev_lock(ch->cdev), saveflags); 1455 1455 if (rc != 0) 1456 1456 ctcm_ccw_check_rc(ch, rc, "normal RX"); 1457 + break; 1457 1458 default: 1458 1459 break; 1459 1460 }
+1
drivers/s390/net/qeth_l3_main.c
··· 434 434 if (qeth_is_ipafunc_supported(card, prot, 435 435 IPA_OSA_MC_ROUTER)) 436 436 return 0; 437 + goto out_inval; 437 438 default: 438 439 goto out_inval; 439 440 }