diff mbox

[kvm:queue,8/8] drivers/ptp/ptp_kvm.c:88:35: error: incompatible type for argument 1 of 'timespec_to_ktime'

Message ID 20170130165326.GA4859@potion (mailing list archive)
State New, archived
Headers show

Commit Message

Radim Krčmář Jan. 30, 2017, 4:53 p.m. UTC
Another build failure with the PTP series happens while compiling as a
module,

  ERROR: "pvclock_pvti_cpu0_va" [drivers/ptp/ptp_kvm.ko] undefined!
  ERROR: "kvm_clock" [drivers/ptp/ptp_kvm.ko] undefined!
  make[1]: *** [scripts/Makefile.modpost:91: __modpost] Error 1
  make: *** [Makefile:1198: modules] Error 2

the following two hunks got rid of that.
diff mbox

Patch

diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c
index 7c4317c00418..995fa260a6da 100644
--- a/arch/x86/kernel/kvmclock.c
+++ b/arch/x86/kernel/kvmclock.c
@@ -50,6 +50,7 @@  struct pvclock_vsyscall_time_info *pvclock_pvti_cpu0_va(void)
 {
 	return hv_clock;
 }
+EXPORT_SYMBOL_GPL(pvclock_pvti_cpu0_va);
 
 /*
  * The wallclock is the time of day when we booted. Since then, some time may
@@ -182,6 +183,7 @@  struct clocksource kvm_clock = {
 	.mask = CLOCKSOURCE_MASK(64),
 	.flags = CLOCK_SOURCE_IS_CONTINUOUS,
 };
+EXPORT_SYMBOL_GPL(kvm_clock);
 
 int kvm_register_clock(char *txt)
 {