]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
kvmclock: Unexport kvmclock clocksource
authorPeter Hilber <peter.hilber@opensynergy.com>
Thu, 1 Feb 2024 01:04:53 +0000 (02:04 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 7 Feb 2024 16:05:21 +0000 (17:05 +0100)
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
arch/x86/include/asm/kvmclock.h
arch/x86/kernel/kvmclock.c

index 511b350691876dc1572183f60c282f22423494fc..f163176d6f7ffc580f0bc6f342ec741ebecaa9a5 100644 (file)
@@ -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)
index 2f1bbf730f455f2eb1f86ffa5efa4dc6c2599e36..5b2c15214a6bdcd9f4e62fce233fe2371efdbb81 100644 (file)
@@ -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)
 {