OSDN Git Service

PCI: hv: Replace hv_vp_set with hv_vpset
authorMaya Nakamura <m.maya.nakamura@gmail.com>
Fri, 1 Mar 2019 06:59:02 +0000 (06:59 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 1 Mar 2019 11:45:10 +0000 (11:45 +0000)
commit9bc1174280ddf7693e8c29a8f1743809e987ac37
tree1d4238e1f2a422a8f7fe9683617f106b61db5311
parent6ae91579061c25f70e4301619ffd16e1b6b5defb
PCI: hv: Replace hv_vp_set with hv_vpset

Remove a duplicate definition of VP set (hv_vp_set) and use the common
definition (hv_vpset) that is used in other places.

Change the order of the members in struct hv_pcibus_device so that the
declaration of retarget_msi_interrupt_params is the last member. Struct
hv_vpset, which contains a flexible array, is nested two levels deep in
struct hv_pcibus_device via retarget_msi_interrupt_params.

Add a comment that retarget_msi_interrupt_params should be the last
member of struct hv_pcibus_device.

Signed-off-by: Maya Nakamura <m.maya.nakamura@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Tested-by: Vitaly Kuznetsov <vkuznets@redhat.com>
drivers/pci/controller/pci-hyperv.c