]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
um: Mark parse_host_cpu_flags as __init
authorTiwei Bie <tiwei.btw@antgroup.com>
Thu, 28 Nov 2024 08:31:29 +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-2-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/kernel/um_arch.c

index c82e26baefc4f0d034783b2a38e371e42c77bb89..d1d438016a14d0794ede88fffe6e3f264cf24398 100644 (file)
@@ -264,7 +264,7 @@ EXPORT_SYMBOL(end_iomem);
 
 #define MIN_VMALLOC (32 * 1024 * 1024)
 
-static void parse_host_cpu_flags(char *line)
+static void __init parse_host_cpu_flags(char *line)
 {
        int i;
        for (i = 0; i < 32*NCAPINTS; i++) {