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

[xen staging] xen/arm: fix build with HAS_PCI



commit 4ce671963eb1f6d12879c75f5fd16325b222b212
Author:     Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
AuthorDate: Tue Jun 10 10:22:57 2025 -0400
Commit:     Michal Orzel <michal.orzel@xxxxxxx>
CommitDate: Thu Jun 12 12:43:05 2025 +0200

    xen/arm: fix build with HAS_PCI
    
    In file included from ./include/xen/pci.h:72,
                     from drivers/pci/pci.c:8:
    ./arch/arm/include/asm/pci.h:131:50: error: â??struct rangesetâ?? declared 
inside parameter list will not be visible outside of this definition or 
declaration [-Werror]
      131 | static inline int pci_sanitize_bar_memory(struct rangeset *r)
          |                                                  ^~~~~~~~
    cc1: all warnings being treated as errors
    
    Fixes: 4acab25a9300 ("x86/vpci: fix handling of BAR overlaps with non-hole 
regions")
    Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
    Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>
---
 xen/arch/arm/include/asm/pci.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/arch/arm/include/asm/pci.h b/xen/arch/arm/include/asm/pci.h
index 1605ec660d..64f0e6ce7e 100644
--- a/xen/arch/arm/include/asm/pci.h
+++ b/xen/arch/arm/include/asm/pci.h
@@ -23,6 +23,8 @@
 
 extern bool pci_passthrough_enabled;
 
+struct rangeset;
+
 /* Arch pci dev struct */
 struct arch_pci_dev {
     struct device dev;
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.