[PATCH] kexec: include asm/early_ioremap.h
Arnd Bergmann
arnd at kernel.org
Wed Apr 23 09:29:18 PDT 2025
From: Arnd Bergmann <arnd at arndb.de>
The early_memremap() function is decleared in a header that is only indirectly
included here:
kernel/kexec_handover.c:1116:8: error: call to undeclared function 'early_memremap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1116 | fdt = early_memremap(fdt_phys, fdt_len);
| ^
Fixes: 4bfe738ce89a ("kexec: add KHO support to kexec file loads")
Signed-off-by: Arnd Bergmann <arnd at arndb.de>
---
kernel/kexec_handover.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kernel/kexec_handover.c b/kernel/kexec_handover.c
index 4bbc6f5ef723..3e8a0118e182 100644
--- a/kernel/kexec_handover.c
+++ b/kernel/kexec_handover.c
@@ -18,6 +18,9 @@
#include <linux/memblock.h>
#include <linux/notifier.h>
#include <linux/page-isolation.h>
+
+#include <asm/early_ioremap.h>
+
/*
* KHO is tightly coupled with mm init and needs access to some of mm
* internal APIs.
--
2.39.5
More information about the kexec
mailing list