summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2024-09-07 10:27:20 +0200
committerThomas Gleixner <tglx@linutronix.de>2024-09-08 16:01:10 +0200
commit1d07085402d122f223bda3f8b72bea37a46ee0c9 (patch)
tree0231e9896dbefecf9fffd260132aaa30dd2b6873 /arch/mips
parentcpu: Fix W=1 build kernel-doc warning (diff)
downloadlinux-1d07085402d122f223bda3f8b72bea37a46ee0c9.tar.xz
linux-1d07085402d122f223bda3f8b72bea37a46ee0c9.zip
smp: Mark smp_prepare_boot_cpu() __init
smp_prepare_boot_cpu() is only called during boot, hence mark it as __init. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Huacai Chen <chenhuacai@loongson.cn> Link: https://lore.kernel.org/all/20240907082720.452148-1-maobibo@loongson.cn
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/kernel/smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c
index 0362fc5df7b0..39e193cad2b9 100644
--- a/arch/mips/kernel/smp.c
+++ b/arch/mips/kernel/smp.c
@@ -439,7 +439,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
}
/* preload SMP state for boot cpu */
-void smp_prepare_boot_cpu(void)
+void __init smp_prepare_boot_cpu(void)
{
if (mp_ops->prepare_boot_cpu)
mp_ops->prepare_boot_cpu();