Re: [PATCH 0/2] KVM: x86: Fix kvm/queue breakage on clang

From: Emanuele Giuseppe Esposito
Date: Thu Mar 16 2023 - 08:08:32 EST




Am 15/03/2023 um 20:11 schrieb Sean Christopherson:
> Fix clang build errors for patches sitting kvm/queue. Ideally, these
> fixes will be squashed before the buggy commits make their way to kvm/next.
> If you do fixup kvm/queue, the VMX commit also has a bad SOB chain; Jim
> either needs to be listed as the author or his SOB needs to be deleted.
>
> Sean Christopherson (2):
> KVM: VMX: Drop unprotected-by-braces variable declaration in
> case-statement
> KVM: SVM: Drop unprotected-by-braces variable declaration in
> case-statement
>
> arch/x86/kvm/svm/svm.c | 5 ++---
> arch/x86/kvm/vmx/vmx.c | 4 +---
> 2 files changed, 3 insertions(+), 6 deletions(-)
>
>
> base-commit: 95b9779c1758f03cf494e8550d6249a40089ed1c

Note to self: compile patches also with clang, since gcc didn't complain
about missing brackets in a switch case.

Reviewed-by: Emanuele Giuseppe Esposito <eesposit@xxxxxxxxxx>