[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <201604202337.R8FSzUrr%fengguang.wu@intel.com>
Date: Wed, 20 Apr 2016 23:21:06 +0800
From: kbuild test robot <lkp@...el.com>
To: Greg Kurz <gkurz@...ux.vnet.ibm.com>
Cc: kbuild-all@...org, Paolo Bonzini <pbonzini@...hat.com>,
james.hogan@...tec.com, mingo@...hat.com,
linux-mips@...ux-mips.org, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, qemu-ppc@...gnu.org,
Cornelia Huck <cornelia.huck@...ibm.com>,
Paul Mackerras <paulus@...ba.org>,
David Gibson <david@...son.dropbear.id.au>
Subject: Re: [PATCH] KVM: remove buggy vcpu id check on vcpu creation
Hi,
[auto build test WARNING on kvm/linux-next]
[also build test WARNING on v4.6-rc4 next-20160420]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Greg-Kurz/KVM-remove-buggy-vcpu-id-check-on-vcpu-creation/20160420-231233
base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next
config: x86_64-randconfig-x017-201616 (attached as .config)
reproduce:
# 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_arch_vcpu_create':
>> arch/x86/kvm/x86.c:7362:10: warning: return makes pointer from integer without a cast [-Wint-conversion]
return -EINVAL;
^
vim +7362 arch/x86/kvm/x86.c
7346 }
7347
7348 void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu)
7349 {
7350 kvmclock_reset(vcpu);
7351
7352 free_cpumask_var(vcpu->arch.wbinvd_dirty_mask);
7353 kvm_x86_ops->vcpu_free(vcpu);
7354 }
7355
7356 struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm,
7357 unsigned int id)
7358 {
7359 struct kvm_vcpu *vcpu;
7360
7361 if (id >= KVM_MAX_VCPUS)
> 7362 return -EINVAL;
7363
7364 if (check_tsc_unstable() && atomic_read(&kvm->online_vcpus) != 0)
7365 printk_once(KERN_WARNING
7366 "kvm: SMP vm created on host with unstable TSC; "
7367 "guest TSC will not be reliable\n");
7368
7369 vcpu = kvm_x86_ops->vcpu_create(kvm, id);
7370
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/octet-stream" (24821 bytes)
Powered by blists - more mailing lists