[kvm:queue 6/8] arch/x86/kvm/x86.c:6162:2: warning: passing argument 2 of 'kvm_get_walltime_and_clockread' from incompatible pointer type

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

 



tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   6cd1eaf959a3c27612d13173f0530f4ab6a2ad11
commit: 012e136b6c39a894a2d3ab934c5dae9c03debf18 [6/8] KVM: x86: add KVM_HC_CLOCK_PAIRING hypercall
config: x86_64-randconfig-n0-01280107 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
        git checkout 012e136b6c39a894a2d3ab934c5dae9c03debf18
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (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:2: warning: passing argument 2 of 'kvm_get_walltime_and_clockread' from incompatible pointer type [enabled by default]
     if (kvm_get_walltime_and_clockread(&ts, &cycle) == false)
     ^
   arch/x86/kvm/x86.c:1665:13: note: expected 'u64 *' but argument is of type 'int *'
    static bool kvm_get_walltime_and_clockread(struct timespec *ts,
                ^

vim +/kvm_get_walltime_and_clockread +6162 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