[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 08/11] xen/arm: gate make_gicv3_domU_node with CONFIG_GICV3
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <sstabellini@xxxxxxxxxx>, <julien@xxxxxxx>
- From: Penny Zheng <penny.zheng@xxxxxxx>
- Date: Thu, 27 Jan 2022 07:49:26 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=Zv99J/JvMfg/PNJtCHZ3IadhuqFRQ7hXXDxbc+rSdBs=; b=l2gSdUVV2vQ4fKKlAjveKMOuUdWQ/AGIRS0sjWUzfgZ90MdYamv/CsbG3VD7o86iUV6+3LpBlQmCvu5OFDNVhxVY/d0mBTt7rVdTSBhvl+0ZVO9rGjDzV8ZMqiU9tNPajh0X4wcWOtGXhG3VAdsvreSp3TAPPpHfssI0HDpj3E2y763Mr9iKUYglPMyZVecI3lC0YbB1rnHtLIBvNsG0kTq0RPQwj6XrMwZTc672ELjeTk/ikeRjiRBkMuVRL6WDpesCfqNDLe2NzQvjz+t0kXUcarxqceDMM0H5gC20BqQVNa7udXi9I+NVrPYYOEHE99NuU+XJeyYG64l1A8eIRg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j9eh1KFLRb3HJnzrr9pdBLVV9UbQ6HPV+76bKjsozv/0h59frKPiI/pGaX43UBAOx/rTkV/gZB8N0yZdk2aArCmUr0zcmjANX2jHAKwU63siM3hK7AHztw3KxlecZEdYfZ5fGxTPi0aereWYg0qeV8sDgWl95XZkl/6ovjBHvVCLdHv1K7gkq73Lq2M5qhIzpr3k5fmD0Y0/SIMD92KA/docukzo/gRhJAtX8mLcSEfCjPtO4DTLM2+ZR0rQqUmbHXecouQWC0yWjJ7+wVMJq7OW6gHK8dKUFggwdxARZgXsNewRlM3HB7N2pJXocsfosdJDgq1PdA9Exhmilc112A==
- Cc: <Bertrand.Marquis@xxxxxxx>, <Wei.Chen@xxxxxxx>
- Delivery-date: Thu, 27 Jan 2022 07:50:58 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
This commit gates function make_gicv3_domU_node with CONFIG_GICV3.
Signed-off-by: Penny Zheng <penny.zheng@xxxxxxx>
Acked-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
Tested-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
---
v4 changes:
- remove ASSERT_UNREACHABLE() to avoid breaking compilation on prod build with
CONFIG_GICV3=n
---
v5 changes:
- nothing changed
---
xen/arch/arm/domain_build.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c
index 87391adde6..a01dc60b55 100644
--- a/xen/arch/arm/domain_build.c
+++ b/xen/arch/arm/domain_build.c
@@ -2322,6 +2322,7 @@ static int __init make_gicv2_domU_node(struct kernel_info
*kinfo)
return res;
}
+#ifdef CONFIG_GICV3
static int __init make_gicv3_domU_node(struct kernel_info *kinfo)
{
void *fdt = kinfo->fdt;
@@ -2371,13 +2372,16 @@ static int __init make_gicv3_domU_node(struct
kernel_info *kinfo)
return res;
}
+#endif
static int __init make_gic_domU_node(struct kernel_info *kinfo)
{
switch ( kinfo->d->arch.vgic.version )
{
+#ifdef CONFIG_GICV3
case GIC_V3:
return make_gicv3_domU_node(kinfo);
+#endif
case GIC_V2:
return make_gicv2_domU_node(kinfo);
default:
--
2.25.1
|