powerpc/kvm: Fall through switch case explicitly
Subsystems (2)
PATCH 1/1 powerpc/kvm: Fall through switch case explicitly
Implicit fallthrough warning was enabled globally which broke the build. Make it explicit with a fall through comment.
--- arch/powerpc/kvm/book3s_32_mmu.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/kvm/book3s_32_mmu.c +1 -0
@@ -239,6 +239,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 */ case 3 :case 5 :case 7 :
Signature · 1 line
2.20.1
Hi Santosh,
Quoted 24 lines · On Mon, 29 Jul 2019 11:25:36 +0530 Santosh Sivaraj <[email protected]> wrote:
Implicit fallthrough warning was enabled globally which broke the build. Make it explicit with a
fall throughcomment.Signed-off-by Santosh Sivaraj <[email protected]>--- arch/powerpc/kvm/book3s_32_mmu.c | 1 + 1 file changed, 1 insertion(+)arch/powerpc/kvm/book3s_32_mmu.c +1
-0@@ -239,6 +239,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 */ case 3 :case 5 :case 7 :Signature · 1 line
2.20.1
Thanks
This only shows up as a warning in a powerpc allyesconfig build.
Signature · 2 lines
Cheers, Stephen Rothwell
Gustavo A. R. Silva
Reviewed-byQuoted 8 lines · Stephen Rothwell
Hi Santosh,
Quoted 5 lines · On Mon, 29 Jul 2019 11:25:36 +0530 Santosh Sivaraj <[email protected]> wrote:
Implicit fallthrough warning was enabled globally which broke the build. Make it explicit with a
fall throughcomment.Signed-off-by Santosh Sivaraj <[email protected]>
Thanks!
--
Gustavo
Quoted 26 lines
Quoted 19 lines
--- arch/powerpc/kvm/book3s_32_mmu.c | 1 + 1 file changed, 1 insertion(+)arch/powerpc/kvm/book3s_32_mmu.c +1
-0@@ -239,6 +239,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 */ case 3 :case 5 :case 7 :Signature · 1 line
2.20.1Thanks
Reviewed-by Stephen Rothwell <[email protected]>This only shows up as a warning in a powerpc allyesconfig build.
Hi all,
Quoted 8 lines · On Mon, 29 Jul 2019 18:45:40 -0500 "Gustavo A. R. Silva"…
Quoted 6 lines · Stephen Rothwell
Quoted 4 lines · On Mon, 29 Jul 2019 11:25:36 +0530 Santosh Sivaraj <[email protected]> wrote:
Implicit fallthrough warning was enabled globally which broke the build. Make it explicit with a
fall throughcomment.
Quoted 34 lines
Quoted 1 line
Quoted 1 line
Signed-off-by Santosh Sivaraj <[email protected]>Reviewed-by Gustavo A. R. Silva <[email protected]>Thanks!
--
GustavoQuoted 26 lines
Quoted 19 lines
--- arch/powerpc/kvm/book3s_32_mmu.c | 1 + 1 file changed, 1 insertion(+)arch/powerpc/kvm/book3s_32_mmu.c +1
-0@@ -239,6 +239,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 */ case 3 :case 5 :case 7 :Signature · 1 line
2.20.1Thanks
Reviewed-by Stephen Rothwell <[email protected]>This only shows up as a warning in a powerpc allyesconfig build.
I will apply this to linux-next today (and keep it until it turns up in some other tree).
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Stephen,
Quoted 41 lines · Stephen Rothwell
Hi all,
Quoted 38 lines · On Mon, 29 Jul 2019 18:45:40 -0500 "Gustavo A. R. Silva"…
Quoted 7 lines · Stephen Rothwell
Quoted 5 lines · On Mon, 29 Jul 2019 11:25:36 +0530 Santosh Sivaraj <[email protected]> wrote:
Implicit fallthrough warning was enabled globally which broke the build. Make it explicit with a
fall throughcomment.Signed-off-by Santosh Sivaraj <[email protected]>Reviewed-by Gustavo A. R. Silva <[email protected]>Thanks!
--
GustavoQuoted 22 lines
Quoted 19 lines
--- arch/powerpc/kvm/book3s_32_mmu.c | 1 + 1 file changed, 1 insertion(+)arch/powerpc/kvm/book3s_32_mmu.c +1
-0@@ -239,6 +239,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 */ case 3 :case 5 :case 7 :Signature · 1 line
2.20.1Thanks
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Reviewed-by Stephen Rothwell <[email protected]>This only shows up as a warning in a powerpc allyesconfig build.
I will apply this to linux-next today (and keep it until it turns up in some other tree).
If no one takes it by tomorrow, I'll take it in my tree.
Thanks!
--
Gustavo
Hi Gustavo,
Quoted 2 lines · On Mon, 29 Jul 2019 22:30:34 -0500 "Gustavo A. R. Silva"…
If no one takes it by tomorrow, I'll take it in my tree.
I am assuming that Michael Ellerman will take it into his fixes tree and send it to Lunis fairly soon as it actually breaks some powerpc builds.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 10 lines · Stephen Rothwell
Hi Gustavo,
Quoted 2 lines · On Mon, 29 Jul 2019 22:30:34 -0500 "Gustavo A. R. Silva"…
If no one takes it by tomorrow, I'll take it in my tree.
I am assuming that Michael Ellerman will take it into his fixes tree and send it to Lunis fairly soon as it actually breaks some powerpc builds.
Yeah. It seems that now that -Wimplicit-fallthrough has been globally enabled, that's the case for all of these patches.
Anyway, I can always take them in my tree if needed.
Thanks
--
Gustavo
Hi Gustavo,
Quoted 9 lines · On Mon, 29 Jul 2019 22:57:05 -0500 "Gustavo A. R. Silva"…
Quoted 4 lines · Stephen Rothwell
I am assuming that Michael Ellerman will take it into his fixes tree and send it to Lunis fairly soon as it actually breaks some powerpc builds.
Yeah. It seems that now that -Wimplicit-fallthrough has been globally enabled, that's the case for all of these patches.
Only some of them cause failures (as opposed to warnings) .. in this case because arch/powerpc is built with -Werror.
Signature · 2 lines
Cheers, Stephen Rothwell
Michael Ellerman
AppliedQuoted 6 lines · Santosh Sivaraj
Implicit fallthrough warning was enabled globally which broke the build. Make it explicit with a
fall throughcomment.Signed-off-by Santosh Sivaraj <[email protected]>Reviewed-by Stephen Rothwell <[email protected]>Reviewed-by Gustavo A. R. Silva <[email protected]>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/705d0abbcc7adf04743d04ea8754acbcdf21c326
cheers