[PATCH 3/9] um: Mark get_top_address as __init

Tiwei Bie tiwei.btw at antgroup.com
Thu Nov 28 00:31:31 PST 2024


It's only invoked during boot from linux_main().

Signed-off-by: Tiwei Bie <tiwei.btw at antgroup.com>
---
 arch/um/kernel/um_arch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c
index 852267542a06..3e03a716c6ec 100644
--- a/arch/um/kernel/um_arch.c
+++ b/arch/um/kernel/um_arch.c
@@ -289,7 +289,7 @@ static void __init parse_cache_line(char *line)
 	}
 }
 
-static unsigned long get_top_address(char **envp)
+static unsigned long __init get_top_address(char **envp)
 {
 	unsigned long top_addr = (unsigned long) &top_addr;
 	int i;
-- 
2.34.1




More information about the linux-um mailing list