KVM: PPC: Use fallthrough;
authorJoe Perches <joe@perches.com>
Wed, 11 Mar 2020 04:51:30 +0000 (21:51 -0700)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 19 Mar 2020 05:39:52 +0000 (16:39 +1100)
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>
arch/powerpc/kvm/book3s_32_mmu.c
arch/powerpc/kvm/book3s_64_mmu.c
arch/powerpc/kvm/book3s_pr.c
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/powerpc.c

index f21e734..3fbd570 100644 (file)
@@ -234,7 +234,7 @@ static int kvmppc_mmu_book3s_32_xlate_pte(struct kvm_vcpu *vcpu, gva_t eaddr,
                                case 2:
                                case 6:
                                        pte->may_write = true;
-                                       /* fall through */
+                                       fallthrough;
                                case 3:
                                case 5:
                                case 7:
index 5991332..26b8b27 100644 (file)
@@ -311,7 +311,7 @@ do_second:
        case 2:
        case 6:
                gpte->may_write = true;
-               /* fall through */
+               fallthrough;
        case 3:
        case 5:
        case 7:
index 3bc2f5d..1d9c554 100644 (file)
@@ -740,7 +740,7 @@ int kvmppc_handle_pagefault(struct kvm_run *run, struct kvm_vcpu *vcpu,
                    (vcpu->arch.hflags & BOOK3S_HFLAG_SPLIT_HACK) &&
                    ((pte.raddr & SPLIT_HACK_MASK) == SPLIT_HACK_OFFS))
                        pte.raddr &= ~SPLIT_HACK_MASK;
-               /* fall through */
+               fallthrough;
        case MSR_IR:
                vcpu->arch.mmu.esid_to_vsid(vcpu, eaddr >> SID_SHIFT, &vsid);
 
index c9f4b37..10e2d76 100644 (file)
@@ -421,11 +421,11 @@ static int kvmppc_booke_irqprio_deliver(struct kvm_vcpu *vcpu,
        case BOOKE_IRQPRIO_DATA_STORAGE:
        case BOOKE_IRQPRIO_ALIGNMENT:
                update_dear = true;
-               /* fall through */
+               fallthrough;
        case BOOKE_IRQPRIO_INST_STORAGE:
        case BOOKE_IRQPRIO_PROGRAM:
                update_esr = true;
-               /* fall through */
+               fallthrough;
        case BOOKE_IRQPRIO_ITLB_MISS:
        case BOOKE_IRQPRIO_SYSCALL:
        case BOOKE_IRQPRIO_FP_UNAVAIL:
@@ -459,7 +459,7 @@ static int kvmppc_booke_irqprio_deliver(struct kvm_vcpu *vcpu,
        case BOOKE_IRQPRIO_DECREMENTER:
        case BOOKE_IRQPRIO_FIT:
                keep_irq = true;
-               /* fall through */
+               fallthrough;
        case BOOKE_IRQPRIO_EXTERNAL:
        case BOOKE_IRQPRIO_DBELL:
                allowed = vcpu->arch.shared->msr & MSR_EE;
index 62ee66d..6729c13 100644 (file)
@@ -524,7 +524,6 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
                r = 1;
                break;
        case KVM_CAP_PPC_GUEST_DEBUG_SSTEP:
-               /* fall through */
        case KVM_CAP_PPC_PAIRED_SINGLES:
        case KVM_CAP_PPC_OSI:
        case KVM_CAP_PPC_GET_PVINFO: