All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2017-01-27 17:43 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-01-27 17:43 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: kbuild-all, kvm, Robert Hu, Paolo Bonzini

[-- Attachment #1: Type: text/plain, Size: 1775 bytes --]

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 #2: .config.gz --]
[-- Type: application/gzip, Size: 29004 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-27 17:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-27 17:43 [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 kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.