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

[PATCH 2/2] xen: enforce __init in common/device-tree/*-build.c


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • Date: Tue, 13 May 2025 13:18:03 -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=5V85z1ViJnkkgRl4AbkpCsiTRJxEws892rNh16MnFJo=; b=ZOku2oYCiN7riseQjJMWrHryRbimcIAwY3NND4UIJtRt+ZjbQIElpDFG26fExCruS3DY4qXom37PdTPEci3ESsqbwz+3b5ce0zgJnxmkGrJNTW3dPLYA5+g5e2trwdBFrfrGrZGbU/wX+nM36snVTC13CWj4obDnrEbByFxa/HpK6OajmAGiXuWYbDiNFSx4jfTMYzbuFZmqB7nRFj3fiB6rW63/q51+5IDgww6urkeeqnX7Ge+VdBempRmc3vR7TRvPdJo0dCwXVuIwWa2LFziCYB2RzM5v/OeE8DyzZrzajl8lixUrWbSX0gdtt+k/15j/ZtMEmBQcWA+DhdUqwQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=O0vvh4ebZPKLSYjrwQElVea06AG2pPtXt1fLQD8K57rVGKy6B7azKrhRVSRxJsl1nfkpuERkGNEYs7o3W9L7Qqogeu+GMx8arsN7w0Gr03PK/xPCIe7RSgZPrKy3GiCyzdVt9ocusvmkY9PWiCAQ18K4jYV4/iPpVk5+ScbEdhhqtt5LS51dSJgc093x7CySTGu7ys0lXqGyqJhdwo/s3deoP+TAp/1wl0a1yysX5EbYGHfZDsV4Zadl15ny0umJrfBzrPN7AyPlRtEkMD+nIodiFg8jOUPfK08RZmrEnR8o7p23MvzmvEHJ9yPfUt0G/SRYl1Fu15NATV+A+LwBIw==
  • Cc: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>
  • Delivery-date: Tue, 13 May 2025 17:18:24 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Code in domain-build.c and dom0less-build.c was migrated from init-only
files. Thus, they contain only __init functions. Enforce this at build
time.

Fixes: ad03faa942b9 ("xen/common: dom0less: make some parts of Arm's 
CONFIG_DOM0LESS common")
Fixes: d07b7369aa65 ("xen/common: dom0less: introduce common domain-build.c")
Signed-off-by: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
---
 xen/common/device-tree/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xen/common/device-tree/Makefile b/xen/common/device-tree/Makefile
index 831b91399b74..ff54a8ef2bee 100644
--- a/xen/common/device-tree/Makefile
+++ b/xen/common/device-tree/Makefile
@@ -1,8 +1,8 @@
 obj-y += bootfdt.init.o
 obj-y += bootinfo.init.o
 obj-y += device-tree.o
-obj-$(CONFIG_DOMAIN_BUILD_HELPERS) += domain-build.o
-obj-$(CONFIG_DOM0LESS_BOOT) += dom0less-build.o
+obj-$(CONFIG_DOMAIN_BUILD_HELPERS) += domain-build.init.o
+obj-$(CONFIG_DOM0LESS_BOOT) += dom0less-build.init.o
 obj-$(CONFIG_OVERLAY_DTB) += dt-overlay.o
 obj-y += intc.o
 obj-$(CONFIG_DOMAIN_BUILD_HELPERS) += kernel.o
-- 
2.49.0




 


Rackspace

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