Re: [PATCH v8 1/8] linux-headers: update to 6.0-rc3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/09/2022 19.27, Matthew Rosato wrote:
Signed-off-by: Matthew Rosato <mjrosato@xxxxxxxxxxxxx>
---
...
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?

 Thomas




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux