[PATCH] ARM: mark free_initrd_mem as __init
From: Kairui Song
Date: Wed Apr 21 2021 - 13:07:35 EST
free_initrd_mem is only called from __init functions, and only used
during boot, so mark it __init.
Signed-off-by: Kairui Song <kasong@xxxxxxxxxx>
---
arch/arm/mm/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 828a2561b229..6db5c0d37d95 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -528,7 +528,7 @@ void free_initmem(void)
}
#ifdef CONFIG_BLK_DEV_INITRD
-void free_initrd_mem(unsigned long start, unsigned long end)
+void __init free_initrd_mem(unsigned long start, unsigned long end)
{
if (start == initrd_start)
start = round_down(start, PAGE_SIZE);
--
2.30.2