diff options
author | 2024-11-28 16:31:29 +0800 | |
---|---|---|
committer | 2025-01-10 13:49:56 +0100 | |
commit | 70240b5d1f5be2a9d37e43e6dc355d07681d2bbc (patch) | |
tree | d830a13202283ea3dbee8ece1e4d86ffa1be2291 | |
parent | um: Count iomem_size only once in physmem calculation (diff) | |
download | wireguard-linux-70240b5d1f5be2a9d37e43e6dc355d07681d2bbc.tar.xz wireguard-linux-70240b5d1f5be2a9d37e43e6dc355d07681d2bbc.zip |
um: Mark parse_host_cpu_flags 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-2-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to '')
-rw-r--r-- | arch/um/kernel/um_arch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index c82e26baefc4..d1d438016a14 100644 --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c @@ -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++) { |