The 2 structs can use a zero-length array here, because dynamic memory of
the correct size is allocated in hv_pci_devices_present() and we don't need
this extra element.
No functional change.
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: KY Srinivasan <kys@microsoft.com>
CC: Jake Oshins <jakeo@microsoft.com>
CC: Haiyang Zhang <haiyangz@microsoft.com>
CC: Vitaly Kuznetsov <vkuznets@redhat.com>
 struct pci_bus_relations {
        struct pci_incoming_message incoming;
        u32 device_count;
-       struct pci_function_description func[1];
+       struct pci_function_description func[0];
 } __packed;
 
 struct pci_q_res_req_response {
 struct hv_dr_state {
        struct list_head list_entry;
        u32 device_count;
-       struct pci_function_description func[1];
+       struct pci_function_description func[0];
 };
 
 enum hv_pcichild_state {