[kvm:queue 47/61] arch/mips/kvm/mips.c:906:6: error: redefinition of 'kvm_arch_vcpu_async_ioctl'

[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:   19b22110fcf48c888b556c7ae97511d225f39777
commit: bcd8c2d624c37d36e2d33fef9766d701c0ea77f3 [47/61] KVM: introduce kvm_arch_vcpu_async_ioctl
config: mips-malta_kvm_defconfig (attached as .config)
compiler: mipsel-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout bcd8c2d624c37d36e2d33fef9766d701c0ea77f3
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All errors (new ones prefixed by >>):

>> arch/mips/kvm/mips.c:906:6: error: redefinition of 'kvm_arch_vcpu_async_ioctl'
    long kvm_arch_vcpu_async_ioctl(struct file *filp, unsigned int ioctl,
         ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kvm/mips.c:30:0:
   include/linux/kvm_host.h:1267:20: note: previous definition of 'kvm_arch_vcpu_async_ioctl' was here
    static inline long kvm_arch_vcpu_async_ioctl(struct file *filp,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~

vim +/kvm_arch_vcpu_async_ioctl +906 arch/mips/kvm/mips.c

   905	
 > 906	long kvm_arch_vcpu_async_ioctl(struct file *filp, unsigned int ioctl,
   907				       unsigned long arg)
   908	{
   909		struct kvm_vcpu *vcpu = filp->private_data;
   910		void __user *argp = (void __user *)arg;
   911	
   912		if (ioctl == KVM_INTERRUPT) {
   913			struct kvm_mips_interrupt irq;
   914	
   915			if (copy_from_user(&irq, argp, sizeof(irq)))
   916				return -EFAULT;
   917			kvm_debug("[%d] %s: irq: %d\n", vcpu->vcpu_id, __func__,
   918				  irq.irq);
   919	
   920			return kvm_vcpu_ioctl_interrupt(vcpu, &irq);
   921		}
   922	
   923		return -ENOIOCTLCMD;
   924	}
   925	

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