All of lore.kernel.org
 help / color / mirror / Atom feed
* [arm-platforms:kvm-arm64/its-translation-cache 10/11] arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-kvm-device.c:646:8: error: 'KVM_DEV_ARM_VGIC_PCPU_LPI_CACHE_SIZE' undeclared; did you mean 'KVM_DEV_ARM_VGIC_GRP_CPU_REGS'?
@ 2019-06-19  7:24 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-06-19  7:24 UTC (permalink / raw)
  To: Marc Zyngier; +Cc: kbuild-all, linux-arm-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/its-translation-cache
head:   76792d7ebbc0f42b227e6bec56fc7a3a21258f67
commit: 6f00994ddd073b8e2f63949405a24e2c451061f4 [10/11] DO NOT MERGE: Luserspace control knob for the ITS cache
config: arm-axm55xx_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.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 6f00994ddd073b8e2f63949405a24e2c451061f4
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   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:646:8: error: 'KVM_DEV_ARM_VGIC_PCPU_LPI_CACHE_SIZE' undeclared (first use in this function); did you mean 'KVM_DEV_ARM_VGIC_GRP_CPU_REGS'?
      case KVM_DEV_ARM_VGIC_PCPU_LPI_CACHE_SIZE: {
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           KVM_DEV_ARM_VGIC_GRP_CPU_REGS
   arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-kvm-device.c:646:8: 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_get_attr':
   arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-kvm-device.c:711:8: error: 'KVM_DEV_ARM_VGIC_PCPU_LPI_CACHE_SIZE' undeclared (first use in this function); did you mean 'KVM_DEV_ARM_VGIC_GRP_CPU_REGS'?
      case KVM_DEV_ARM_VGIC_PCPU_LPI_CACHE_SIZE: {
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           KVM_DEV_ARM_VGIC_GRP_CPU_REGS
   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:755:8: error: 'KVM_DEV_ARM_VGIC_PCPU_LPI_CACHE_SIZE' undeclared (first use in this function); did you mean 'KVM_DEV_ARM_VGIC_GRP_CPU_REGS'?
      case KVM_DEV_ARM_VGIC_PCPU_LPI_CACHE_SIZE:
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           KVM_DEV_ARM_VGIC_GRP_CPU_REGS

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

   587	
   588	static int vgic_v3_set_attr(struct kvm_device *dev,
   589				    struct kvm_device_attr *attr)
   590	{
   591		int ret;
   592	
   593		ret = vgic_set_common_attr(dev, attr);
   594		if (ret != -ENXIO)
   595			return ret;
   596	
   597		switch (attr->group) {
   598		case KVM_DEV_ARM_VGIC_GRP_DIST_REGS:
   599		case KVM_DEV_ARM_VGIC_GRP_REDIST_REGS: {
   600			u32 __user *uaddr = (u32 __user *)(long)attr->addr;
   601			u32 tmp32;
   602			u64 reg;
   603	
   604			if (get_user(tmp32, uaddr))
   605				return -EFAULT;
   606	
   607			reg = tmp32;
   608			return vgic_v3_attr_regs_access(dev, attr, &reg, true);
   609		}
   610		case KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS: {
   611			u64 __user *uaddr = (u64 __user *)(long)attr->addr;
   612			u64 reg;
   613	
   614			if (get_user(reg, uaddr))
   615				return -EFAULT;
   616	
   617			return vgic_v3_attr_regs_access(dev, attr, &reg, true);
   618		}
   619		case KVM_DEV_ARM_VGIC_GRP_LEVEL_INFO: {
   620			u32 __user *uaddr = (u32 __user *)(long)attr->addr;
   621			u64 reg;
   622			u32 tmp32;
   623	
   624			if (get_user(tmp32, uaddr))
   625				return -EFAULT;
   626	
   627			reg = tmp32;
   628			return vgic_v3_attr_regs_access(dev, attr, &reg, true);
   629		}
   630		case KVM_DEV_ARM_VGIC_GRP_CTRL: {
   631			int ret;
   632	
   633			switch (attr->attr) {
   634			case KVM_DEV_ARM_VGIC_SAVE_PENDING_TABLES:
   635				mutex_lock(&dev->kvm->lock);
   636	
   637				if (!lock_all_vcpus(dev->kvm)) {
   638					mutex_unlock(&dev->kvm->lock);
   639					return -EBUSY;
   640				}
   641				ret = vgic_v3_save_pending_tables(dev->kvm);
   642				unlock_all_vcpus(dev->kvm);
   643				mutex_unlock(&dev->kvm->lock);
   644				return ret;
   645	
 > 646			case KVM_DEV_ARM_VGIC_PCPU_LPI_CACHE_SIZE: {
   647				u32 __user *uaddr = (u32 __user *)(long)attr->addr;
   648				u32 val;
   649	
   650				if (get_user(val, uaddr))
   651					return -EFAULT;
   652	
   653				/* YAAL: Yet Another Arbitrary Limit */
   654				if (val > 256)
   655					return -E2BIG;
   656	
   657				dev->kvm->arch.vgic.lpi_pcpu_cache_size = val;
   658				return 0;
   659			}
   660			}
   661			break;
   662		}
   663		}
   664		return -ENXIO;
   665	}
   666	

---
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: 21176 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

only message in thread, other threads:[~2019-06-19  7:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-19  7:24 [arm-platforms:kvm-arm64/its-translation-cache 10/11] arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-kvm-device.c:646:8: error: 'KVM_DEV_ARM_VGIC_PCPU_LPI_CACHE_SIZE' undeclared; did you mean 'KVM_DEV_ARM_VGIC_GRP_CPU_REGS'? 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.