]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um: Mark parse_cache_line as __init
authorTiwei Bie <tiwei.btw@antgroup.com>
Thu, 28 Nov 2024 08:31:30 +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 get_host_cpu_features().

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20241128083137.2219830-3-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/kernel/um_arch.c

index d1d438016a14d0794ede88fffe6e3f264cf24398..c48cef206828f72e069450651ea52da2f63c9299 100644 (file)
@@ -272,7 +272,8 @@ static void __init parse_host_cpu_flags(char *line)
                        set_cpu_cap(&boot_cpu_data, i);
        }
 }
-static void parse_cache_line(char *line)
+
+static void __init parse_cache_line(char *line)
 {
        long res;
        char *to_parse = strstr(line, ":");