kexec: include asm/early_ioremap.h
Subsystems (3)
PATCH v2 1/1 kexec: include asm/early_ioremap.h
From: Arnd Bergmann <[email protected]>
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 ceef8de6a481 ("kexec: add KHO parsing support")
Signed-off-by Arnd Bergmann <[email protected]>
---
v2: change 'Fixes' tag to the correct patch.
--- kernel/kexec_handover.c | 3 +++ 1 file changed, 3 insertions(+)
kernel/kexec_handover.c +3 -0
@@ -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.
Signature · 1 line
2.39.5