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

KVM: PPC: Use fallthrough;

Convert the various uses of fallthrough comments to fallthrough;

Done via script
Link: https://lore.kernel.org/lkml/b56602fcf79f849e733e7b521bb0e17895d390fa.1582230379.git.joe.com/

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>

authored by

Joe Perches and committed by
Paul Mackerras
8fc6ba0a 1f50cc17

+6 -7
+1 -1
arch/powerpc/kvm/book3s_32_mmu.c
··· 234 234 case 2: 235 235 case 6: 236 236 pte->may_write = true; 237 - /* fall through */ 237 + fallthrough; 238 238 case 3: 239 239 case 5: 240 240 case 7:
+1 -1
arch/powerpc/kvm/book3s_64_mmu.c
··· 311 311 case 2: 312 312 case 6: 313 313 gpte->may_write = true; 314 - /* fall through */ 314 + fallthrough; 315 315 case 3: 316 316 case 5: 317 317 case 7:
+1 -1
arch/powerpc/kvm/book3s_pr.c
··· 740 740 (vcpu->arch.hflags & BOOK3S_HFLAG_SPLIT_HACK) && 741 741 ((pte.raddr & SPLIT_HACK_MASK) == SPLIT_HACK_OFFS)) 742 742 pte.raddr &= ~SPLIT_HACK_MASK; 743 - /* fall through */ 743 + fallthrough; 744 744 case MSR_IR: 745 745 vcpu->arch.mmu.esid_to_vsid(vcpu, eaddr >> SID_SHIFT, &vsid); 746 746
+3 -3
arch/powerpc/kvm/booke.c
··· 421 421 case BOOKE_IRQPRIO_DATA_STORAGE: 422 422 case BOOKE_IRQPRIO_ALIGNMENT: 423 423 update_dear = true; 424 - /* fall through */ 424 + fallthrough; 425 425 case BOOKE_IRQPRIO_INST_STORAGE: 426 426 case BOOKE_IRQPRIO_PROGRAM: 427 427 update_esr = true; 428 - /* fall through */ 428 + fallthrough; 429 429 case BOOKE_IRQPRIO_ITLB_MISS: 430 430 case BOOKE_IRQPRIO_SYSCALL: 431 431 case BOOKE_IRQPRIO_FP_UNAVAIL: ··· 459 459 case BOOKE_IRQPRIO_DECREMENTER: 460 460 case BOOKE_IRQPRIO_FIT: 461 461 keep_irq = true; 462 - /* fall through */ 462 + fallthrough; 463 463 case BOOKE_IRQPRIO_EXTERNAL: 464 464 case BOOKE_IRQPRIO_DBELL: 465 465 allowed = vcpu->arch.shared->msr & MSR_EE;
-1
arch/powerpc/kvm/powerpc.c
··· 524 524 r = 1; 525 525 break; 526 526 case KVM_CAP_PPC_GUEST_DEBUG_SSTEP: 527 - /* fall through */ 528 527 case KVM_CAP_PPC_PAIRED_SINGLES: 529 528 case KVM_CAP_PPC_OSI: 530 529 case KVM_CAP_PPC_GET_PVINFO: