[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1] iommu/ipmmu-vmsa: Fix build with HAS_PCI=n
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
- Date: Thu, 21 Aug 2025 10:50:59 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- 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=1ZFxoHjk2LCW85ctA8CHNhOh+xhpEnzUimziGQcn7K8=; b=HXytk0NJrM2RPAAhvgpIcfRx6HyIniUiobQFa5d4D6GDdraWkiLml3kU8hCCEM2GGFYXHjUrjE/0+8zbk7kysE88wsdF8yRqwDlkdfGVhv6IlmTXJZoX8YpYiF8DaUyQMxzcZZe7Hpv/3HxpCfqSB22Qbn2lWIPPE5CsT6kSLJ44Pj2wC0VBI4a6aqDs8S1PKnPDD7sVOQIj4EYrxg7yhuizPaWnLHW+q14PWR4URoB+lbmZx/vlIKvO6+D1CBQALsnwqurFhzAsusTFKlVjTKli/YxXY0F+QqiDPwZ8FFjw3A90cclV8+4hroIa5WHbnf+ykQQftUV2Zs0zGZJezw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=u0SWz/gu9BZwaEoqpnejdV0uMq5/32VhTjiFBc1v3tN2JzUzSTvWz76/PHHvQyaqOe63wkaR+K17IEmzOv9wZf1pkjsNKUs5JWMydXJU4dVZtfSn08O9nAGAyS+FVq0l1Q5h+MgIP+CFQ0EJpFgJ5+hEVnmb8IxpG+rUxqosFiM3chzTEUn89G9aUClj0c9gNvqS8RCJIapB4aUIjeEYwwDC49BnPfCdToxh+1KYbUmAw9B11Yx5IyT+7i6+6eqCkgMKd1sngjieAH2sVU4IGOA8CjI3Q21n3vLou12TEvUymwwoGORjiCJa/E9zDNSH3Uf1o8KWLneixP+uzxK+FQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
- Cc: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Thu, 21 Aug 2025 10:51:28 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHcEol6WY2CZ9Gyh0KXEcdKpt6HNg==
- Thread-topic: [PATCH v1] iommu/ipmmu-vmsa: Fix build with HAS_PCI=n
With PCI disabled the build fails due to undefined struct
pci_host_bridge.
Add ifdef guard around pci-host-rcar4.h to not include it when PCI
support is disabled.
Signed-off-by: Mykyta Poturai <mykyta_poturai@xxxxxxxx>
---
This patch can be squashed with iommu/ipmmu-vmsa: Implement basic PCIE-IPMMU
OSID support
---
xen/drivers/passthrough/arm/ipmmu-vmsa.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xen/drivers/passthrough/arm/ipmmu-vmsa.c
b/xen/drivers/passthrough/arm/ipmmu-vmsa.c
index ea9fa9ddf3..49f149e222 100644
--- a/xen/drivers/passthrough/arm/ipmmu-vmsa.c
+++ b/xen/drivers/passthrough/arm/ipmmu-vmsa.c
@@ -51,7 +51,9 @@
#include <asm/device.h>
#include <asm/io.h>
#include <asm/iommu_fwspec.h>
+#ifdef CONFIG_HAS_PCI
#include "../arch/arm/pci/pci-host-rcar4.h"
+#endif
#define dev_name(dev) dt_node_full_name(dev_to_dt(dev))
--
2.34.1
|