]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2ade3f206f96a54a35e0ff7616da2f5b2f5a7d25
tree81caff70e9fe3012801582c1b45c5b7baed86eec
parentd90e58af30fcd92714d352b94520541244d8f58c
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