]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/cpu: Make identify_boot_cpu() static
authorThomas Gleixner <tglx@linutronix.de>
Tue, 8 Aug 2023 22:03:39 +0000 (15:03 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Wed, 9 Aug 2023 18:58:15 +0000 (11:58 -0700)
It's not longer used outside the source file.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Sohil Mehta <sohil.mehta@intel.com>
Tested-by: Juergen Gross <jgross@suse.com> # Xen PV (dom0 and unpriv. guest)
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/common.c

index d46300e94f853ae12659b9cf887b0a96444905b6..923ca0a4b550df9caf262d9055fe25600895fcd8 100644 (file)
@@ -190,7 +190,6 @@ static inline unsigned long long l1tf_pfn_limit(void)
 }
 
 extern void early_cpu_init(void);
-extern void identify_boot_cpu(void);
 extern void identify_secondary_cpu(struct cpuinfo_x86 *);
 extern void print_cpu_info(struct cpuinfo_x86 *);
 void print_cpu_msr(struct cpuinfo_x86 *);
index 0ba1067f4e5f15bf16b518bf71bfa4f7676b0190..b156187afedb19937c241e11e073014251ea32f7 100644 (file)
@@ -1937,7 +1937,7 @@ void enable_sep_cpu(void)
 }
 #endif
 
-void __init identify_boot_cpu(void)
+static __init void identify_boot_cpu(void)
 {
        identify_cpu(&boot_cpu_data);
        if (HAS_KERNEL_IBT && cpu_feature_enabled(X86_FEATURE_IBT))