Skip to content

Commit 8fc6ba0

Browse files
JoePerchespaulusmack
authored andcommitted
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 <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 1f50cc1 commit 8fc6ba0

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

arch/powerpc/kvm/book3s_32_mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static int kvmppc_mmu_book3s_32_xlate_pte(struct kvm_vcpu *vcpu, gva_t eaddr,
234234
case 2:
235235
case 6:
236236
pte->may_write = true;
237-
/* fall through */
237+
fallthrough;
238238
case 3:
239239
case 5:
240240
case 7:

arch/powerpc/kvm/book3s_64_mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ static int kvmppc_mmu_book3s_64_xlate(struct kvm_vcpu *vcpu, gva_t eaddr,
311311
case 2:
312312
case 6:
313313
gpte->may_write = true;
314-
/* fall through */
314+
fallthrough;
315315
case 3:
316316
case 5:
317317
case 7:

arch/powerpc/kvm/book3s_pr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ int kvmppc_handle_pagefault(struct kvm_run *run, struct kvm_vcpu *vcpu,
740740
(vcpu->arch.hflags & BOOK3S_HFLAG_SPLIT_HACK) &&
741741
((pte.raddr & SPLIT_HACK_MASK) == SPLIT_HACK_OFFS))
742742
pte.raddr &= ~SPLIT_HACK_MASK;
743-
/* fall through */
743+
fallthrough;
744744
case MSR_IR:
745745
vcpu->arch.mmu.esid_to_vsid(vcpu, eaddr >> SID_SHIFT, &vsid);
746746

arch/powerpc/kvm/booke.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,11 +421,11 @@ static int kvmppc_booke_irqprio_deliver(struct kvm_vcpu *vcpu,
421421
case BOOKE_IRQPRIO_DATA_STORAGE:
422422
case BOOKE_IRQPRIO_ALIGNMENT:
423423
update_dear = true;
424-
/* fall through */
424+
fallthrough;
425425
case BOOKE_IRQPRIO_INST_STORAGE:
426426
case BOOKE_IRQPRIO_PROGRAM:
427427
update_esr = true;
428-
/* fall through */
428+
fallthrough;
429429
case BOOKE_IRQPRIO_ITLB_MISS:
430430
case BOOKE_IRQPRIO_SYSCALL:
431431
case BOOKE_IRQPRIO_FP_UNAVAIL:
@@ -459,7 +459,7 @@ static int kvmppc_booke_irqprio_deliver(struct kvm_vcpu *vcpu,
459459
case BOOKE_IRQPRIO_DECREMENTER:
460460
case BOOKE_IRQPRIO_FIT:
461461
keep_irq = true;
462-
/* fall through */
462+
fallthrough;
463463
case BOOKE_IRQPRIO_EXTERNAL:
464464
case BOOKE_IRQPRIO_DBELL:
465465
allowed = vcpu->arch.shared->msr & MSR_EE;

arch/powerpc/kvm/powerpc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,6 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
524524
r = 1;
525525
break;
526526
case KVM_CAP_PPC_GUEST_DEBUG_SSTEP:
527-
/* fall through */
528527
case KVM_CAP_PPC_PAIRED_SINGLES:
529528
case KVM_CAP_PPC_OSI:
530529
case KVM_CAP_PPC_GET_PVINFO:

0 commit comments

Comments
 (0)