[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 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: Mon, 20 Dec 2021 05:21:20 +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=QS564yQkFbORxrHAzkwHkRpIJHS3ZaGMDAAY7ObgxuM=; b=ZV11EUrHxfCRIKWjYymCDCftaKYw/Uw/bsrtrwdngp+4lGHBA7UPGsukrGzMF6indeJJ94DQqE0/UxbBiNLo8wqf7eXrhjmhyh0Odux1Z3u8oPxeV1UWhuznKVX3y6lfzRRhVK9gxLMPD7/IVHECK2EYc0D0fLxumdBIp1XtEmC2gAui96upss4MSVKCbIj5j1HxCbhh28pKgOSq8yuf6fYgdTUk9a+mLpDlsvcaO/9jrTWcd2AaQvXloRYaL8+rsm1PcXD/26eIdLqLQloyfjSJ7AlLRnyLJoYdCN6fvXyrND1qpr9cmrfv5p31KKkYA02u7ByvOCeZsstH60jhIQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L58t8p6J9UEsDAy1hm+DLriwej0nVRJnQfOISweW3g9Vg/wWqlMNy1TA1bbElr1tob2tLs0y5NDL2CLpYsGqskGGDV0DvdImMqyWjKfCs9s/Te7ZwIhe+7b+jM/u72hdbvL7Mxtz5d/EwdVRYHdG/1+WSxNei543p/D67otoJG4Sa80sK3nnbhFHKwFbKYygZzOVNTr6ugyPczojwJbCfa7LUs43auzn6cYwfNLO1pyA6LBBwVP4fW3jAbaN/BapIuQknDeJnglc0QidawI7Nh9fgFzK6lODF2mnxCBLpIZsINsD+JgqMYfKmC5nt+Q/T3K3oQEFd/mh28V1Vtk53w==
- Cc: <Bertrand.Marquis@xxxxxxx>, <Wei.Chen@xxxxxxx>
- Delivery-date: Mon, 20 Dec 2021 05:22:30 +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>
---
v4 changes:
- remove ASSERT_UNREACHABLE() to avoid breaking compilation on prod build with
CONFIG_GICV3=n
---
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 4788b03d8b..139d428524 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
|