Skip to content

Commit d7114f8

Browse files
sohilmehKAGA-KOKO
authored andcommitted
x86/smpboot: Change smp_store_boot_cpu_info() to static
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
1 parent 54bfd02 commit d7114f8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

arch/x86/include/asm/smp.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ void native_send_call_func_ipi(const struct cpumask *mask);
134134
void native_send_call_func_single_ipi(int cpu);
135135

136136
bool smp_park_other_cpus_in_init(void);
137-
138-
void smp_store_boot_cpu_info(void);
139137
void smp_store_cpu_info(int id);
140138

141139
asmlinkage __visible void smp_reboot_interrupt(void);

arch/x86/kernel/smpboot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ int topology_update_die_map(unsigned int die, unsigned int cpu)
422422
return 0;
423423
}
424424

425-
void __init smp_store_boot_cpu_info(void)
425+
static void __init smp_store_boot_cpu_info(void)
426426
{
427427
int id = 0; /* CPU 0 */
428428
struct cpuinfo_x86 *c = &cpu_data(id);

0 commit comments

Comments
 (0)