[kvm:next 8/11] arch/x86/kvm/x86.c:6156:2: error: unknown type name 'cycle_t'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git next
head:   8f00067a0d867e6ca63e266098ea18cf1a0b5e72
commit: 55dd00a73a518281bc846dc5de1a718349431eb2 [8/11] KVM: x86: add KVM_HC_CLOCK_PAIRING hypercall
config: x86_64-kexec (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 55dd00a73a518281bc846dc5de1a718349431eb2
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   arch/x86/kvm/x86.c: In function 'kvm_pv_clock_pairing':
>> arch/x86/kvm/x86.c:6156:2: error: unknown type name 'cycle_t'
     cycle_t cycle;
     ^~~~~~~
>> arch/x86/kvm/x86.c:6162:42: error: passing argument 2 of 'kvm_get_walltime_and_clockread' from incompatible pointer type [-Werror=incompatible-pointer-types]
     if (kvm_get_walltime_and_clockread(&ts, &cycle) == false)
                                             ^
   arch/x86/kvm/x86.c:1665:13: note: expected 'u64 * {aka long long unsigned int *}' but argument is of type 'int *'
    static bool kvm_get_walltime_and_clockread(struct timespec *ts,
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/cycle_t +6156 arch/x86/kvm/x86.c

  6150	
  6151	static int kvm_pv_clock_pairing(struct kvm_vcpu *vcpu, gpa_t paddr,
  6152				        unsigned long clock_type)
  6153	{
  6154		struct kvm_clock_pairing clock_pairing;
  6155		struct timespec ts;
> 6156		cycle_t cycle;
  6157		int ret;
  6158	
  6159		if (clock_type != KVM_CLOCK_PAIRING_WALLCLOCK)
  6160			return -KVM_EOPNOTSUPP;
  6161	
> 6162		if (kvm_get_walltime_and_clockread(&ts, &cycle) == false)
  6163			return -KVM_EOPNOTSUPP;
  6164	
  6165		clock_pairing.sec = ts.tv_sec;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux