KVM: x86: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 28 May 2021 20:07:56 +0000 (15:07 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Jun 2021 11:48:45 +0000 (07:48 -0400)
commit551912d286e940e63abe9e005f434691ee24fd15
tree81caff70e9fe3012801582c1b45c5b7baed86eec
parent02ffbe6351f5c88337143bcbc649832ded7445c0
KVM: x86: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a couple
of warnings by explicitly adding break statements instead of just letting
the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Message-Id: <20210528200756.GA39320@embeddedor>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/vmx/vmx.c