From fcf7cf21594116b4b7303ea2a4602ba9f97d10ab Mon Sep 17 00:00:00 2001 From: Stewart Hildebrand Date: Tue, 13 May 2025 13:18:03 -0400 Subject: [PATCH] xen: enforce __init in common/device-tree/*-build.c 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 Reviewed-by: Stefano Stabellini --- 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 831b91399b..ff54a8ef2b 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