xen/pci: Include asm/pci.h after pci_sbdf_t in xen/pci.h
authorRahul Singh <rahul.singh@arm.com>
Mon, 4 Oct 2021 11:51:59 +0000 (12:51 +0100)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Tue, 5 Oct 2021 00:40:25 +0000 (17:40 -0700)
Prototypes declared in asm/pci.h that take argument of type pci_sbdf_t
are included in xen/pci.h before defining pci_sbdf_t.

Include asm/pci.h after pci_sbdf_t in xen/pci.h to fix the issue.

Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/xen/pci.h

index 8e3d4d94543a51c657ac6f223b4d452feccfacd5..70ac25345cd9a5199cdff0f1c8e7cf64348d0f33 100644 (file)
@@ -15,7 +15,6 @@
 #include <xen/pfn.h>
 #include <asm/device.h>
 #include <asm/numa.h>
-#include <asm/pci.h>
 
 /*
  * The PCI interface treats multi-function devices as independent
@@ -62,6 +61,8 @@ typedef union {
     };
 } pci_sbdf_t;
 
+#include <asm/pci.h>
+
 struct pci_dev_info {
     /*
      * VF's 'is_extfn' field is used to indicate whether its PF is an extended