diff options
author | 2024-11-28 16:31:30 +0800 | |
---|---|---|
committer | 2025-01-10 13:49:56 +0100 | |
commit | bcd89fd8f5f6caf440a52aa3822316f12bc0732d (patch) | |
tree | ff9bc46ce7f08b995c941fdd1ff41be184dee8e7 /arch/um/kernel | |
parent | um: Mark parse_host_cpu_flags as __init (diff) | |
download | wireguard-linux-bcd89fd8f5f6caf440a52aa3822316f12bc0732d.tar.xz wireguard-linux-bcd89fd8f5f6caf440a52aa3822316f12bc0732d.zip |
um: Mark parse_cache_line as __init
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>
Diffstat (limited to 'arch/um/kernel')
-rw-r--r-- | arch/um/kernel/um_arch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index d1d438016a14..c48cef206828 100644 --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c @@ -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, ":"); |