[kvmarm:kvm-arm64/nv-wip-v5.0-rc1 59/75] arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-kvm-device.c:252:7: error: 'KVM_DEV_ARM_VGIC_GRP_MAINT_IRQ' undeclared; did you mean 'KVM_DEV_ARM_VGIC_GRP_NR_IRQS'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git kvm-arm64/nv-wip-v5.0-rc1
head:   688c386ca096f2c1f2eee386697586c88df5d5bc
commit: 43c8e3e9d31cc009b7d37241859505293e494f4d [59/75] KVM: arm64: nv: vgic: Allow userland to set VGIC maintenance IRQ
config: arm-axm55xx_defconfig (attached as .config)
compiler: arm-linux-gnueabi-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 43c8e3e9d31cc009b7d37241859505293e494f4d
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-kvm-device.c: In function 'vgic_get_common_attr':
>> arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-kvm-device.c:252:7: error: 'KVM_DEV_ARM_VGIC_GRP_MAINT_IRQ' undeclared (first use in this function); did you mean 'KVM_DEV_ARM_VGIC_GRP_NR_IRQS'?
     case KVM_DEV_ARM_VGIC_GRP_MAINT_IRQ: {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          KVM_DEV_ARM_VGIC_GRP_NR_IRQS
   arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-kvm-device.c:252:7: note: each undeclared identifier is reported only once for each function it appears in
   arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-kvm-device.c: In function 'vgic_v3_set_attr':
   arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-kvm-device.c:644:7: error: 'KVM_DEV_ARM_VGIC_GRP_MAINT_IRQ' undeclared (first use in this function); did you mean 'KVM_DEV_ARM_VGIC_GRP_NR_IRQS'?
     case KVM_DEV_ARM_VGIC_GRP_MAINT_IRQ: {
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          KVM_DEV_ARM_VGIC_GRP_NR_IRQS
   arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-kvm-device.c: In function 'vgic_v3_has_attr':
   arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-kvm-device.c:744:7: error: 'KVM_DEV_ARM_VGIC_GRP_MAINT_IRQ' undeclared (first use in this function); did you mean 'KVM_DEV_ARM_VGIC_GRP_NR_IRQS'?
     case KVM_DEV_ARM_VGIC_GRP_MAINT_IRQ:
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          KVM_DEV_ARM_VGIC_GRP_NR_IRQS

vim +252 arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-kvm-device.c

   225	
   226	static int vgic_get_common_attr(struct kvm_device *dev,
   227					struct kvm_device_attr *attr)
   228	{
   229		int r = -ENXIO;
   230	
   231		switch (attr->group) {
   232		case KVM_DEV_ARM_VGIC_GRP_ADDR: {
   233			u64 __user *uaddr = (u64 __user *)(long)attr->addr;
   234			u64 addr;
   235			unsigned long type = (unsigned long)attr->attr;
   236	
   237			r = kvm_vgic_addr(dev->kvm, type, &addr, false);
   238			if (r)
   239				return (r == -ENODEV) ? -ENXIO : r;
   240	
   241			if (copy_to_user(uaddr, &addr, sizeof(addr)))
   242				return -EFAULT;
   243			break;
   244		}
   245		case KVM_DEV_ARM_VGIC_GRP_NR_IRQS: {
   246			u32 __user *uaddr = (u32 __user *)(long)attr->addr;
   247	
   248			r = put_user(dev->kvm->arch.vgic.nr_spis +
   249				     VGIC_NR_PRIVATE_IRQS, uaddr);
   250			break;
   251		}
 > 252		case KVM_DEV_ARM_VGIC_GRP_MAINT_IRQ: {
   253			u32 __user *uaddr = (u32 __user *)(long)attr->addr;
   254	
   255			r = put_user(dev->kvm->arch.vgic.maint_irq, uaddr);
   256			break;
   257		}
   258		}
   259	
   260		return r;
   261	}
   262	

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux