]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
powerpc/kvm: Fall through switch case explicitly
authorSantosh Sivaraj <santosh@fossix.org>
Mon, 29 Jul 2019 05:55:36 +0000 (11:25 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Jul 2019 12:23:58 +0000 (22:23 +1000)
Implicit fallthrough warning was enabled globally which broke
the build. Make it explicit with a `fall through` comment.

Signed-off-by: Santosh Sivaraj <santosh@fossix.org>
Reviewed-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190729055536.25591-1-santosh@fossix.org
arch/powerpc/kvm/book3s_32_mmu.c

index 6539361778578e8b141b99f77f0b2fc46825cb8d..18f244aad7aaa46c1eb45db0f6a283c3d11d9be0 100644 (file)
@@ -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: