[kvm:next 8/12] arch/x86/kvm/x86.c:6162:2: note: in expansion of macro 'if'

[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:   80fbd89cbd07287a7013006c14ddec923b7a4ff6
commit: 55dd00a73a518281bc846dc5de1a718349431eb2 [8/12] KVM: x86: add KVM_HC_CLOCK_PAIRING hypercall
config: i386-randconfig-h1-02082244 (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=i386 

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;
     ^~~~~~~
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/kvm_host.h:9,
                    from arch/x86/kvm/x86.c:22:
   arch/x86/kvm/x86.c:6162:6: error: implicit declaration of function 'kvm_get_walltime_and_clockread' [-Werror=implicit-function-declaration]
     if (kvm_get_walltime_and_clockread(&ts, &cycle) == false)
         ^
   include/linux/compiler.h:149:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> arch/x86/kvm/x86.c:6162:2: note: in expansion of macro 'if'
     if (kvm_get_walltime_and_clockread(&ts, &cycle) == false)
     ^~
   cc1: some warnings being treated as errors

vim +/if +6162 arch/x86/kvm/x86.c

  6146		 */
  6147		return kvm_vcpu_halt(vcpu) && ret;
  6148	}
  6149	EXPORT_SYMBOL_GPL(kvm_emulate_halt);
  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;
  6166		clock_pairing.nsec = ts.tv_nsec;
  6167		clock_pairing.tsc = kvm_read_l1_tsc(vcpu, cycle);
  6168		clock_pairing.flags = 0;
  6169	
  6170		ret = 0;

---
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