* [PATCH -next 016/491] KERNEL VIRTUAL MACHINE FOR POWERPC (KVM/powerpc): Use fallthrough; [not found] <cover.1583896344.git.joe@perches.com> @ 2020-03-11 4:51 ` Joe Perches 2020-03-19 1:18 ` Paul Mackerras 0 siblings, 1 reply; 4+ messages in thread From: Joe Perches @ 2020-03-11 4:51 UTC (permalink / raw) To: Paul Mackerras Cc: Benjamin Herrenschmidt, Michael Ellerman, kvm-ppc, linuxppc-dev, linux-kernel 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> --- arch/powerpc/kvm/book3s_32_mmu.c | 2 +- arch/powerpc/kvm/book3s_64_mmu.c | 2 +- arch/powerpc/kvm/book3s_pr.c | 2 +- arch/powerpc/kvm/booke.c | 6 +++--- arch/powerpc/kvm/powerpc.c | 1 - 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/kvm/book3s_32_mmu.c b/arch/powerpc/kvm/book3s_32_mmu.c index f21e734..3fbd57 100644 --- a/arch/powerpc/kvm/book3s_32_mmu.c +++ b/arch/powerpc/kvm/book3s_32_mmu.c @@ -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: diff --git a/arch/powerpc/kvm/book3s_64_mmu.c b/arch/powerpc/kvm/book3s_64_mmu.c index 5991332..26b8b2 100644 --- a/arch/powerpc/kvm/book3s_64_mmu.c +++ b/arch/powerpc/kvm/book3s_64_mmu.c @@ -311,7 +311,7 @@ static int kvmppc_mmu_book3s_64_xlate(struct kvm_vcpu *vcpu, gva_t eaddr, case 2: case 6: gpte->may_write = true; - /* fall through */ + fallthrough; case 3: case 5: case 7: diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c index 729a0f..7db3695 100644 --- a/arch/powerpc/kvm/book3s_pr.c +++ b/arch/powerpc/kvm/book3s_pr.c @@ -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); diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index 7b27604..be47815 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c @@ -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; diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 1af96fb5..c242a79 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c @@ -525,7 +525,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: -- 2.24.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH -next 016/491] KERNEL VIRTUAL MACHINE FOR POWERPC (KVM/powerpc): Use fallthrough; 2020-03-11 4:51 ` [PATCH -next 016/491] KERNEL VIRTUAL MACHINE FOR POWERPC (KVM/powerpc): Use fallthrough; Joe Perches @ 2020-03-19 1:18 ` Paul Mackerras 2020-03-19 1:22 ` Joe Perches 0 siblings, 1 reply; 4+ messages in thread From: Paul Mackerras @ 2020-03-19 1:18 UTC (permalink / raw) To: Joe Perches Cc: Benjamin Herrenschmidt, Michael Ellerman, kvm-ppc, linuxppc-dev, linux-kernel On Tue, Mar 10, 2020 at 09:51:30PM -0700, Joe Perches wrote: > 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> The subject line should look like "KVM: PPC: Use fallthrough". Apart from that, Acked-by: Paul Mackerras <paulus@ozlabs.org> How are these patches going upstream? Do you want me to take this via my tree? Paul. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -next 016/491] KERNEL VIRTUAL MACHINE FOR POWERPC (KVM/powerpc): Use fallthrough; 2020-03-19 1:18 ` Paul Mackerras @ 2020-03-19 1:22 ` Joe Perches 2020-03-19 23:33 ` Paul Mackerras 0 siblings, 1 reply; 4+ messages in thread From: Joe Perches @ 2020-03-19 1:22 UTC (permalink / raw) To: Paul Mackerras Cc: Benjamin Herrenschmidt, Michael Ellerman, kvm-ppc, linuxppc-dev, linux-kernel On Thu, 2020-03-19 at 12:18 +1100, Paul Mackerras wrote: > On Tue, Mar 10, 2020 at 09:51:30PM -0700, Joe Perches wrote: > > 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> > > The subject line should look like "KVM: PPC: Use fallthrough". There's no way to generate a subject line like that via a script so far as I can tell. > Apart from that, > > Acked-by: Paul Mackerras <paulus@ozlabs.org> > > How are these patches going upstream? Do you want me to take this via > my tree? If you want. Ideally, these changes would go in treewide via a script run by Linus at an -rc1, but if the change is OK with you, it'd be fine to have you apply it now. cheers, Joe ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -next 016/491] KERNEL VIRTUAL MACHINE FOR POWERPC (KVM/powerpc): Use fallthrough; 2020-03-19 1:22 ` Joe Perches @ 2020-03-19 23:33 ` Paul Mackerras 0 siblings, 0 replies; 4+ messages in thread From: Paul Mackerras @ 2020-03-19 23:33 UTC (permalink / raw) To: Joe Perches Cc: Benjamin Herrenschmidt, Michael Ellerman, kvm-ppc, linuxppc-dev, linux-kernel On Wed, Mar 18, 2020 at 06:22:29PM -0700, Joe Perches wrote: > On Thu, 2020-03-19 at 12:18 +1100, Paul Mackerras wrote: > > On Tue, Mar 10, 2020 at 09:51:30PM -0700, Joe Perches wrote: > > > 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> > > > > The subject line should look like "KVM: PPC: Use fallthrough". > > There's no way to generate a subject line like that via a script > so far as I can tell. > > > Apart from that, > > > > Acked-by: Paul Mackerras <paulus@ozlabs.org> > > > > How are these patches going upstream? Do you want me to take this via > > my tree? > > If you want. > > Ideally, these changes would go in treewide via a script run > by Linus at an -rc1, but if the change is OK with you, it'd > be fine to have you apply it now. I have taken this patch in my kvm-ppc-next branch. Thanks, Paul. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-03-19 23:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cover.1583896344.git.joe@perches.com>
2020-03-11 4:51 ` [PATCH -next 016/491] KERNEL VIRTUAL MACHINE FOR POWERPC (KVM/powerpc): Use fallthrough; Joe Perches
2020-03-19 1:18 ` Paul Mackerras
2020-03-19 1:22 ` Joe Perches
2020-03-19 23:33 ` Paul Mackerras
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox