Skip to content

Commit ae62ae7

Browse files
btw616jmberg-intel
authored andcommitted
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>
1 parent bcd89fd commit ae62ae7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/um/kernel/um_arch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ static void __init parse_cache_line(char *line)
289289
}
290290
}
291291

292-
static unsigned long get_top_address(char **envp)
292+
static unsigned long __init get_top_address(char **envp)
293293
{
294294
unsigned long top_addr = (unsigned long) &top_addr;
295295
int i;

0 commit comments

Comments
 (0)