summaryrefslogtreecommitdiff
path: root/arch/um/kernel
diff options
context:
space:
mode:
authorTiwei Bie <tiwei.btw@antgroup.com>2024-11-28 16:31:31 +0800
committerJohannes Berg <johannes.berg@intel.com>2025-01-10 13:49:56 +0100
commitae62ae7994a0f453b1566d04ec090cf1bd534675 (patch)
treedc6aa84d6551ae54c4af111fbac0c69a9f9927ef /arch/um/kernel
parentbcd89fd8f5f6caf440a52aa3822316f12bc0732d (diff)
um: Mark get_top_address as __init
It's only invoked during boot from linux_main(). Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Link: https://patch.msgid.link/20241128083137.2219830-4-tiwei.btw@antgroup.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'arch/um/kernel')
-rw-r--r--arch/um/kernel/um_arch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c
index c48cef206828..79ea97d4797e 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;