linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/kvm: Fall through switch case explicitly
@ 2019-07-29  5:55 Santosh Sivaraj
  2019-07-29  8:16 ` Stephen Rothwell
  2019-07-30 22:50 ` Michael Ellerman
  0 siblings, 2 replies; 9+ messages in thread
From: Santosh Sivaraj @ 2019-07-29  5:55 UTC (permalink / raw)
  To: linuxppc-dev

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>
---
 arch/powerpc/kvm/book3s_32_mmu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/kvm/book3s_32_mmu.c b/arch/powerpc/kvm/book3s_32_mmu.c
index 653936177857..18f244aad7aa 100644
--- a/arch/powerpc/kvm/book3s_32_mmu.c
+++ b/arch/powerpc/kvm/book3s_32_mmu.c
@@ -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:
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-07-30 22:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-29  5:55 [PATCH] powerpc/kvm: Fall through switch case explicitly Santosh Sivaraj
2019-07-29  8:16 ` Stephen Rothwell
2019-07-29 23:45   ` Gustavo A. R. Silva
2019-07-30  3:18     ` Stephen Rothwell
2019-07-30  3:30       ` Gustavo A. R. Silva
2019-07-30  3:50         ` Stephen Rothwell
2019-07-30  3:57           ` Gustavo A. R. Silva
2019-07-30  4:34             ` Stephen Rothwell
2019-07-30 22:50 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).