x86/smpboot: Change smp_store_boot_cpu_info() to static
authorSohil Mehta <sohil.mehta@intel.com>
Thu, 27 Jul 2023 18:05:33 +0000 (18:05 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 28 Jul 2023 08:17:53 +0000 (10:17 +0200)
The function is only used locally. Convert it to a static one.

Signed-off-by: Sohil Mehta <sohil.mehta@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230727180533.3119660-4-sohil.mehta@intel.com
arch/x86/include/asm/smp.h
arch/x86/kernel/smpboot.c

index 094f31d3f9509cc1f90310f94c577b29575b255a..cf7217ad5701d84e88ec8d2c2babf2b152817966 100644 (file)
@@ -134,8 +134,6 @@ void native_send_call_func_ipi(const struct cpumask *mask);
 void native_send_call_func_single_ipi(int cpu);
 
 bool smp_park_other_cpus_in_init(void);
-
-void smp_store_boot_cpu_info(void);
 void smp_store_cpu_info(int id);
 
 asmlinkage __visible void smp_reboot_interrupt(void);
index 6a09a021b5346bcee3b29843270872cf345dc0b4..28c590b4b1b1d6f5e4f8100ef94853a91f15cde9 100644 (file)
@@ -422,7 +422,7 @@ found:
        return 0;
 }
 
-void __init smp_store_boot_cpu_info(void)
+static void __init smp_store_boot_cpu_info(void)
 {
        int id = 0; /* CPU 0 */
        struct cpuinfo_x86 *c = &cpu_data(id);