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

[PATCH] xen/arm: fix build with HAS_PCI


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • Date: Mon, 9 Jun 2025 16:54:21 -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=8wbtqZhYC108wtkPXEr0Ks9WzyBY007ozYY9rvrT0qI=; b=wmmBKT+FeKX/Yljem4d1fUtAS5ZHVkq+Tkp12lB+YW65q2W8fy7kyErYSz3a/WqW7nWnlzY2VRxIhyIJ1cW53ZHoIZQXKhKQnB/6kq1OjLt1f2M9uKxcMIXfp3nvWbNHRc9AWdYmCdIdYYV9jPl1gluJvtc1O5CcB8XUdmDjYgmMRNsbjLIjApRgIVW27EKgj7UZ05lnlbiiuscc4ekam9+rA2uQ2OR10ABhAoD2Fi1i/+XPuZr+ApHw/vmL+rb6+2bFGj/K8dUbU26F9i54QF01WdKDgNJLd1QJtPaF6rpJmf3VCh1ZVA+EKytPznV6XmgoXR8AmsUjt1vjdc+GiA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZMdVOyI5B5XfVQleCGRWs3Rf+YmSickz3FXn5tJvW2dGXvDQSBW1sCqWYMOa37+I1u3wZI/5s8FDi9xbr0/BGVTTBLKWxQ0d4VS8qG+bzC1WxZ5OadcscM4llMEMcDoK3as9soPIH/1jLXfEbLg+9DAxpsLR4IS5H6rIfz6EWSP/7ibd689Noa1VZN/5j5UOoI5yJXROjaOI4gGHKNjEG6VrZshmf3vmwNHASQGy06E3S8TSjwSZXjtpTz4HxHpE2hNM5QbulwHvI34LMeAhM1zGpJwd7owQgUWa46QtlF9lkoGHzyGzcdp/HwmW6ueBwTE3hH+B+WvMt9XQbrLWFA==
  • 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: Mon, 09 Jun 2025 20:54:47 +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>
---
 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..1bbb9d780193 100644
--- a/xen/arch/arm/include/asm/pci.h
+++ b/xen/arch/arm/include/asm/pci.h
@@ -17,6 +17,8 @@
 
 #ifdef CONFIG_HAS_PCI
 
+#include <xen/rangeset.h>
+
 #include <asm/p2m.h>
 
 #define pci_to_dev(pcidev) (&(pcidev)->arch.dev)

base-commit: 86a12671c5d33063b6f958bdcca7c9d14cd5aac8
-- 
2.49.0




 


Rackspace

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