All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvm:queue 27/38] arch/x86/kvm/hyperv.c:186:41: sparse: incorrect type in argument 2 (different modifiers)
@ 2015-09-18 13:39 kbuild test robot
  2015-09-18 13:51 ` Denis V. Lunev
  0 siblings, 1 reply; 14+ messages in thread
From: kbuild test robot @ 2015-09-18 13:39 UTC (permalink / raw)
  To: Andrey Smetanin
  Cc: kbuild-all, Paolo Bonzini, Roman Kagan, Denis V. Lunev, kvm

tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   ed393e4134de0dd02d8ba98ca8ce3ae65d1eb567
commit: 46f4c309534b10ca1026273abe38955d3cff4023 [27/38] kvm/x86: Hyper-V HV_X64_MSR_VP_RUNTIME support
reproduce:
  # apt-get install sparse
  git checkout 46f4c309534b10ca1026273abe38955d3cff4023
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> arch/x86/kvm/hyperv.c:186:41: sparse: incorrect type in argument 2 (different modifiers)
   arch/x86/kvm/hyperv.c:186:41:    expected unsigned long [nocast] [usertype] *ut
   arch/x86/kvm/hyperv.c:186:41:    got unsigned long *<noident>
>> arch/x86/kvm/hyperv.c:186:41: sparse: implicit cast to nocast type
>> arch/x86/kvm/hyperv.c:186:49: sparse: incorrect type in argument 3 (different modifiers)
   arch/x86/kvm/hyperv.c:186:49:    expected unsigned long [nocast] [usertype] *st
   arch/x86/kvm/hyperv.c:186:49:    got unsigned long *<noident>
   arch/x86/kvm/hyperv.c:186:49: sparse: implicit cast to nocast type

vim +186 arch/x86/kvm/hyperv.c

   170				kvm_make_request(KVM_REQ_HV_RESET, vcpu);
   171			}
   172			break;
   173		default:
   174			vcpu_unimpl(vcpu, "Hyper-V uhandled wrmsr: 0x%x data 0x%llx\n",
   175				    msr, data);
   176			return 1;
   177		}
   178		return 0;
   179	}
   180	
   181	/* Calculate cpu time spent by current task in 100ns units */
   182	static u64 current_task_runtime_100ns(void)
   183	{
   184		cputime_t utime, stime;
   185	
 > 186		task_cputime_adjusted(current, &utime, &stime);
   187		return div_u64(cputime_to_nsecs(utime + stime), 100);
   188	}
   189	
   190	static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host)
   191	{
   192		struct kvm_vcpu_hv *hv = &vcpu->arch.hyperv;
   193	
   194		switch (msr) {

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-02-22 18:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-18 13:39 [kvm:queue 27/38] arch/x86/kvm/hyperv.c:186:41: sparse: incorrect type in argument 2 (different modifiers) kbuild test robot
2015-09-18 13:51 ` Denis V. Lunev
2015-09-18 13:55   ` Paolo Bonzini
2015-09-18 13:57     ` Denis V. Lunev
2015-09-18 14:40     ` Roman Kagan
2015-09-18 14:41       ` Paolo Bonzini
2015-09-18 15:06         ` [kbuild-all] " Fengguang Wu
2016-01-05 13:51           ` Luc Van Oostenryck
2016-01-05 16:25             ` [PATCH] Do not drop 'nocast' modifier when taking the address Luc Van Oostenryck
2016-02-02 20:25               ` Christopher Li
2016-02-03  3:43                 ` Luc Van Oostenryck
2016-02-03  4:09                   ` Christopher Li
2016-02-03  9:15                     ` Luc Van Oostenryck
2016-02-22 18:41                       ` Christopher Li

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.