[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v8 1/8] linux-headers: update to 6.0-rc3
From: |
Peter Maydell |
Subject: |
Re: [PATCH v8 1/8] linux-headers: update to 6.0-rc3 |
Date: |
Mon, 26 Sep 2022 13:56:22 +0100 |
On Mon, 26 Sept 2022 at 13:53, Thomas Huth <thuth@redhat.com> wrote:
>
> On 02/09/2022 19.27, Matthew Rosato wrote:
> > Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
> > ---
> ...
> > diff --git a/linux-headers/asm-x86/kvm.h b/linux-headers/asm-x86/kvm.h
> > index bf6e96011d..46de10a809 100644
> > --- a/linux-headers/asm-x86/kvm.h
> > +++ b/linux-headers/asm-x86/kvm.h
> > @@ -198,13 +198,13 @@ struct kvm_msrs {
> > __u32 nmsrs; /* number of msrs in entries */
> > __u32 pad;
> >
> > - struct kvm_msr_entry entries[0];
> > + struct kvm_msr_entry entries[];
> > };
>
> Yuck, this fails to compile with Clang:
>
> https://gitlab.com/thuth/qemu/-/jobs/3084427423#L2206
>
> ../target/i386/kvm/kvm.c:470:25: error: field 'info' with variable sized
> type 'struct kvm_msrs' not at the end of a struct or class is a GNU
> extension [-Werror,-Wgnu-variable-sized-type-not-at-end]
> struct kvm_msrs info;
> ^
>
> Anybody any ideas how to fix this best? Simply disable the compiler warning
> in QEMU?
There's already a patchset on list that does that:
https://patchew.org/QEMU/20220915091035.3897-1-chenyi.qiang@intel.com/
thanks
-- PMM
- [PATCH v8 0/8] s390x/pci: zPCI interpretation support, Matthew Rosato, 2022/09/02
- [PATCH v8 2/8] s390x/pci: add routine to get host function handle from CLP info, Matthew Rosato, 2022/09/02
- [PATCH v8 6/8] s390x/pci: let intercept devices have separate PCI groups, Matthew Rosato, 2022/09/02
- [PATCH v8 4/8] s390x/pci: don't fence interpreted devices without MSI-X, Matthew Rosato, 2022/09/02
- [PATCH v8 7/8] s390x/pci: reflect proper maxstbl for groups of interpreted devices, Matthew Rosato, 2022/09/02
- [PATCH v8 1/8] linux-headers: update to 6.0-rc3, Matthew Rosato, 2022/09/02
- [PATCH v8 3/8] s390x/pci: enable for load/store intepretation, Matthew Rosato, 2022/09/02
- [PATCH v8 5/8] s390x/pci: enable adapter event notification for interpreted devices, Matthew Rosato, 2022/09/02
- [PATCH v8 8/8] s390x/s390-virtio-ccw: add zpcii-disable machine property, Matthew Rosato, 2022/09/02
- Re: [PATCH v8 0/8] s390x/pci: zPCI interpretation support, Thomas Huth, 2022/09/23