]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um: Mark get_top_address as __init
authorTiwei Bie <tiwei.btw@antgroup.com>
Thu, 28 Nov 2024 08:31:31 +0000 (16:31 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 10 Jan 2025 12:49:56 +0000 (13:49 +0100)
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>
arch/um/kernel/um_arch.c

index c48cef206828f72e069450651ea52da2f63c9299..79ea97d4797ecc9c157ee948ae0505bcdef84da5 100644 (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;