x86/cpu: Remove redundant extern x86_read_arch_cap_msr()
authorAshok Raj <ashok.raj@intel.com>
Mon, 28 Nov 2022 17:24:51 +0000 (09:24 -0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 10 Jan 2023 11:40:24 +0000 (12:40 +0100)
The prototype for the x86_read_arch_cap_msr() function has moved to
arch/x86/include/asm/cpu.h - kill the redundant definition in arch/x86/kernel/cpu.h
and include the header.

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Daniel Sneddon <daniel.sneddon@linux.intel.com>
Link: https://lore.kernel.org/r/20221128172451.792595-1-ashok.raj@intel.com
arch/x86/kernel/cpu/bugs.c
arch/x86/kernel/cpu/cpu.h
arch/x86/kernel/cpu/tsx.c

index bca0bd8f4846413831da02ec7eee8ae9c12abd12..19e1ce0fc17e2e84efe3e4f1ba7a5b9e7cd60bfe 100644 (file)
@@ -33,6 +33,7 @@
 #include <asm/e820/api.h>
 #include <asm/hypervisor.h>
 #include <asm/tlbflush.h>
+#include <asm/cpu.h>
 
 #include "cpu.h"
 
index 7c9b5893c30aba0d3eb21c758264292d26a2e767..57a5349e69548fe8acb6aaaa1da09f38e19eef40 100644 (file)
@@ -83,6 +83,4 @@ unsigned int aperfmperf_get_khz(int cpu);
 extern void x86_spec_ctrl_setup_ap(void);
 extern void update_srbds_msr(void);
 
-extern u64 x86_read_arch_cap_msr(void);
-
 #endif /* ARCH_X86_CPU_H */
index 8009c8346d8f832016ded51bdafd6528fa072bb0..b31ee4f1657a82d15e7df449fbcca1952f8bec56 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/cpufeature.h>
 
 #include <asm/cmdline.h>
+#include <asm/cpu.h>
 
 #include "cpu.h"