From 8ca1a1d5e6386926e8ff7a86ca1b422f9005caf7 Mon Sep 17 00:00:00 2001 From: Oleksii Kurochko Date: Wed, 18 Feb 2026 10:17:06 +0100 Subject: [PATCH] xen/riscv: build setup code as .init At the moment, all code and data in setup.c are marked with __init or __initdata, which is intended to remain this way. Leverage this by using setup.init.o instead of setup.o in Makefile. Suggested-by: Jan Beulich Signed-off-by: Oleksii Kurochko Acked-by: Jan Beulich --- xen/arch/riscv/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/riscv/Makefile b/xen/arch/riscv/Makefile index caa1aac5b2..bc47e83b26 100644 --- a/xen/arch/riscv/Makefile +++ b/xen/arch/riscv/Makefile @@ -12,7 +12,7 @@ obj-y += paging.o obj-y += pt.o obj-$(CONFIG_RISCV_64) += riscv64/ obj-y += sbi.o -obj-y += setup.o +obj-y += setup.init.o obj-y += shutdown.o obj-y += smp.o obj-y += smpboot.o