aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Peter Hilber <peter.hilber@opensynergy.com> 2024-02-01 02:04:53 +0100
committerGravatar Thomas Gleixner <tglx@linutronix.de> 2024-02-07 17:05:21 +0100
commit27f6a9c87a97f5ea7459be08d5be231af6b32c20 (patch)
treef9a831ace96908958ce2d70c874e5b981fcb1771
parenttreewide: Remove system_counterval_t.cs, which is never read (diff)
downloadlinux-27f6a9c87a97f5ea7459be08d5be231af6b32c20.tar.gz
linux-27f6a9c87a97f5ea7459be08d5be231af6b32c20.tar.bz2
linux-27f6a9c87a97f5ea7459be08d5be231af6b32c20.zip
kvmclock: Unexport kvmclock clocksource
The KVM PTP driver now refers to the clocksource ID CSID_X86_KVM_CLK, not to the clocksource itself any more. There are no remaining users of the clocksource export. Therefore, make the clocksource static again. Signed-off-by: Peter Hilber <peter.hilber@opensynergy.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20240201010453.2212371-9-peter.hilber@opensynergy.com
-rw-r--r--arch/x86/include/asm/kvmclock.h2
-rw-r--r--arch/x86/kernel/kvmclock.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/include/asm/kvmclock.h b/arch/x86/include/asm/kvmclock.h
index 511b35069187..f163176d6f7f 100644
--- a/arch/x86/include/asm/kvmclock.h
+++ b/arch/x86/include/asm/kvmclock.h
@@ -4,8 +4,6 @@
#include <linux/percpu.h>
-extern struct clocksource kvm_clock;
-
DECLARE_PER_CPU(struct pvclock_vsyscall_time_info *, hv_clock_per_cpu);
static __always_inline struct pvclock_vcpu_time_info *this_cpu_pvti(void)
diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c
index 2f1bbf730f45..5b2c15214a6b 100644
--- a/arch/x86/kernel/kvmclock.c
+++ b/arch/x86/kernel/kvmclock.c
@@ -154,7 +154,7 @@ static int kvm_cs_enable(struct clocksource *cs)
return 0;
}
-struct clocksource kvm_clock = {
+static struct clocksource kvm_clock = {
.name = "kvm-clock",
.read = kvm_clock_get_cycles,
.rating = 400,
@@ -163,7 +163,6 @@ struct clocksource kvm_clock = {
.id = CSID_X86_KVM_CLK,
.enable = kvm_cs_enable,
};
-EXPORT_SYMBOL_GPL(kvm_clock);
static void kvm_register_clock(char *txt)
{