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

Merge tag 'Wimplicit-fallthrough-5.3-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux

Pull fallthrough fixes from Gustavo A. R. Silva:
"Fix fall-through warnings on arc and nds32 for multiple
configurations"

* tag 'Wimplicit-fallthrough-5.3-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux:
nds32: Mark expected switch fall-throughs
ARC: unwind: Mark expected switch fall-through

+8
+1
arch/arc/kernel/unwind.c
··· 572 572 #else 573 573 BUILD_BUG_ON(sizeof(u32) != sizeof(value)); 574 574 #endif 575 + /* Fall through */ 575 576 case DW_EH_PE_native: 576 577 if (end < (const void *)(ptr.pul + 1)) 577 578 return 0;
+2
arch/nds32/kernel/signal.c
··· 316 316 regs->uregs[0] = -EINTR; 317 317 break; 318 318 } 319 + /* Else, fall through */ 319 320 case -ERESTARTNOINTR: 320 321 regs->uregs[0] = regs->orig_r0; 321 322 regs->ipc -= 4; ··· 361 360 switch (regs->uregs[0]) { 362 361 case -ERESTART_RESTARTBLOCK: 363 362 regs->uregs[15] = __NR_restart_syscall; 363 + /* Fall through */ 364 364 case -ERESTARTNOHAND: 365 365 case -ERESTARTSYS: 366 366 case -ERESTARTNOINTR:
+5
include/math-emu/op-common.h
··· 308 308 \ 309 309 case _FP_CLS_COMBINE(FP_CLS_NORMAL,FP_CLS_ZERO): \ 310 310 R##_e = X##_e; \ 311 + /* Fall through */ \ 311 312 case _FP_CLS_COMBINE(FP_CLS_NAN,FP_CLS_NORMAL): \ 312 313 case _FP_CLS_COMBINE(FP_CLS_NAN,FP_CLS_INF): \ 313 314 case _FP_CLS_COMBINE(FP_CLS_NAN,FP_CLS_ZERO): \ ··· 319 318 \ 320 319 case _FP_CLS_COMBINE(FP_CLS_ZERO,FP_CLS_NORMAL): \ 321 320 R##_e = Y##_e; \ 321 + /* Fall through */ \ 322 322 case _FP_CLS_COMBINE(FP_CLS_NORMAL,FP_CLS_NAN): \ 323 323 case _FP_CLS_COMBINE(FP_CLS_INF,FP_CLS_NAN): \ 324 324 case _FP_CLS_COMBINE(FP_CLS_ZERO,FP_CLS_NAN): \ ··· 417 415 case _FP_CLS_COMBINE(FP_CLS_NAN,FP_CLS_INF): \ 418 416 case _FP_CLS_COMBINE(FP_CLS_NAN,FP_CLS_ZERO): \ 419 417 R##_s = X##_s; \ 418 + /* Fall through */ \ 420 419 \ 421 420 case _FP_CLS_COMBINE(FP_CLS_INF,FP_CLS_INF): \ 422 421 case _FP_CLS_COMBINE(FP_CLS_INF,FP_CLS_NORMAL): \ ··· 431 428 case _FP_CLS_COMBINE(FP_CLS_INF,FP_CLS_NAN): \ 432 429 case _FP_CLS_COMBINE(FP_CLS_ZERO,FP_CLS_NAN): \ 433 430 R##_s = Y##_s; \ 431 + /* Fall through */ \ 434 432 \ 435 433 case _FP_CLS_COMBINE(FP_CLS_NORMAL,FP_CLS_INF): \ 436 434 case _FP_CLS_COMBINE(FP_CLS_NORMAL,FP_CLS_ZERO): \ ··· 497 493 \ 498 494 case _FP_CLS_COMBINE(FP_CLS_NORMAL,FP_CLS_ZERO): \ 499 495 FP_SET_EXCEPTION(FP_EX_DIVZERO); \ 496 + /* Fall through */ \ 500 497 case _FP_CLS_COMBINE(FP_CLS_INF,FP_CLS_ZERO): \ 501 498 case _FP_CLS_COMBINE(FP_CLS_INF,FP_CLS_NORMAL): \ 502 499 R##_c = FP_CLS_INF; \