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>
This commit is contained in:
Tiwei Bie 2024-11-28 16:31:31 +08:00 committed by Johannes Berg
parent bcd89fd8f5
commit ae62ae7994

View File

@ -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;