[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2] xen/arm: fix build with HAS_PCI
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
- Date: Tue, 10 Jun 2025 10:22:57 -0400
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=E5U8wbQNi3yTZwoPAKZ6ACj9OUN82gA50PwezWKLsZ4=; b=jKS8a3M5se0al4KW7WR/9YksMtN/9hjv/NbKxZ/SYbiNWLVx5Xn3fR+qAZGwFF2jNmsaKFRlnA3esfSkrYOZAGSG5w8Cj0Va+UCABCEJa0L4ItT/L08GQu8S8RuwdcDikABMLiNbroriikdF6UXZgYt8/eISLtIdZKJewj3Yrw+ZQ4TPiL6XfTVHL+1+fwW6CvOpR5g5ybnsiB5ZOMhlVxe3zp74+5LdXwc+YotX7WgbtsvocSWhZRS2BJqBifYhtyh9F8Yl8kJj8JOZom1GrvtDydWyYHve7vRBIA10MyO4mrZsQD8MGcrWnW4Orvk0lx96MTFWRAF2tCzYdZJ2mw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=y2FLm4Wj2uC4k3gelN2BYFixuvS7L/3o2+w8NeQJEIy6/WFyasXNdE/PvHzv9le5r0n+DMsuxw5OBXmYn4iIfA+rGbvxrMZAiZuZv9NssReidwreMw8nf4qqO7OgEQc+anMhNAudvkS40DSZcy4oJmHuZULxMv6zzz7wKkdrfHnCDHmFz48XcAeaPCvMGcShov07kYM8phHfdnOsSl0mbOlAAJIGjm1XrihGUuVNXrth5I0SW0TxzVR5UgSYRZaCi3R9u4KvlHIi8TD/KoLaAHOoMxWSC7Ckqg586nGk+6fR6aM1cEJgGD/A/WQf4IxmsZA+cJmbsNwXqE1vA97XTg==
- Cc: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, "Volodymyr Babchuk" <Volodymyr_Babchuk@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Tue, 10 Jun 2025 14:23:18 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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>
---
v1->v2:
* forward declare instead of #include
---
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 1605ec660d0b..64f0e6ce7e3b 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;
base-commit: 86a12671c5d33063b6f958bdcca7c9d14cd5aac8
--
2.49.0
|