[PATCH] kho: make kho_reserve_scratch and kho_init_reserved_pages __init

From: Mike Rapoport (Microsoft)
Date: Fri Feb 07 2025 - 02:57:09 EST


Signed-off-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
---
kernel/kexec_handover.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/kexec_handover.c b/kernel/kexec_handover.c
index c21ea2a09d47..e0b92011afe2 100644
--- a/kernel/kexec_handover.c
+++ b/kernel/kexec_handover.c
@@ -620,7 +620,7 @@ static phys_addr_t __init scratch_size(int nid)
* active. This CMA region will only be used for movable pages which are not a
* problem for us during KHO because we can just move them somewhere else.
*/
-static void kho_reserve_scratch(void)
+static void __init kho_reserve_scratch(void)
{
phys_addr_t addr, size;
int nid, i = 1;
@@ -672,7 +672,7 @@ static void kho_reserve_scratch(void)
* Scan the DT for any memory ranges and make sure they are reserved in
* memblock, otherwise they will end up in a weird state on free lists.
*/
-static void kho_init_reserved_pages(void)
+static void __init kho_init_reserved_pages(void)
{
const void *fdt = kho_get_fdt();
int offset = 0, depth = 0, initial_depth = 0, len;
--
2.47.2


--
Sincerely yours,
Mike.