[kvm:queue 25/26] include/linux/kvm_host.h:333:11: error: 'KVM_NR_IRQCHIPS' undeclared here (not in a function)
tree: git://git.kernel.org/pub/scm/virt/kvm/kvm.git queue head: 50079e2c9bcb2dd8ffe573c0edddbef9ad6fd809 commit: b7b0d2b2f35c0e6882ea0b342318bf06472ce756 [25/26] KVM: x86: Add EOI exit bitmap inference config: mips-jz4740 (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout b7b0d2b2f35c0e6882ea0b342318bf06472ce756 # save the attached .config to linux build tree make.cross ARCH=mips All error/warnings (new ones prefixed by ): In file included from arch/mips/kernel/asm-offsets.c:22:0: include/linux/kvm_host.h:333:11: error: 'KVM_NR_IRQCHIPS' undeclared here (not in a function) int chip[KVM_NR_IRQCHIPS][KVM_IRQCHIP_NUM_PINS]; ^ include/linux/kvm_host.h:333:28: error: 'KVM_IRQCHIP_NUM_PINS' undeclared here (not in a function) int chip[KVM_NR_IRQCHIPS][KVM_IRQCHIP_NUM_PINS]; ^ make[2]: *** [arch/mips/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [sub-make] Error 2 vim +/KVM_NR_IRQCHIPS +333 include/linux/kvm_host.h 327 struct kvm_s390_adapter_int adapter; 328 }; 329 struct hlist_node link; 330 }; 331 332 struct kvm_irq_routing_table { 333 int chip[KVM_NR_IRQCHIPS][KVM_IRQCHIP_NUM_PINS]; 334 struct kvm_kernel_irq_routing_entry *rt_entries; 335 u32 nr_rt_entries; 336 /* --- 0-DAY kernel test infrastructureOpen Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation # # Automatically generated file; DO NOT EDIT. # Linux/mips 4.2.0-rc3 Kernel Configuration # CONFIG_MIPS=y # # Machine selection # # CONFIG_MIPS_ALCHEMY is not set # CONFIG_AR7 is not set # CONFIG_ATH25 is not set # CONFIG_ATH79 is not set # CONFIG_BMIPS_GENERIC is not set # CONFIG_BCM47XX is not set # CONFIG_BCM63XX is not set # CONFIG_MIPS_COBALT is not set # CONFIG_MACH_DECSTATION is not set # CONFIG_MACH_JAZZ is not set # CONFIG_MACH_INGENIC is not set # CONFIG_LANTIQ is not set # CONFIG_LASAT is not set # CONFIG_MACH_LOONGSON32 is not set # CONFIG_MACH_LOONGSON64 is not set # CONFIG_MACH_PISTACHIO is not set # CONFIG_MIPS_MALTA is not set # CONFIG_MIPS_SEAD3 is not set # CONFIG_NEC_MARKEINS is not set # CONFIG_MACH_VR41XX is not set # CONFIG_NXP_STB220 is not set # CONFIG_NXP_STB225 is not set # CONFIG_PMC_MSP is not set # CONFIG_RALINK is not set CONFIG_SGI_IP22=y # CONFIG_SGI_IP27 is not set # CONFIG_SGI_IP28 is not set # CONFIG_SGI_IP32 is not set # CONFIG_SIBYTE_CRHINE is not set # CONFIG_SIBYTE_CARMEL is not set # CONFIG_SIBYTE_CRHONE is not set # CONFIG_SIBYTE_RHONE is not set # CONFIG_SIBYTE_SWARM is not set # CONFIG_SIBYTE_LITTLESUR is not set # CONFIG_SIBYTE_SENTOSA is not set # CONFIG_SIBYTE_BIGSUR is not set # CONFIG_SNI_RM is not set # CONFIG_MACH_TX39XX is not set # CONFIG_MACH_TX49XX is not set # CONFIG_MIKROTIK_RB532 is not set # CONFIG_CAVIUM_OCTEON_SOC is not set # CONFIG_NLM_XLR_BOARD is not set # CONFIG_NLM_XLP_BOARD is not set # CONFIG_MIPS_PARAVIRT is not set # CONFIG_ALCHEMY_GPIO_INDIRECT is not set CONFIG_RWSEM_GENERIC_SPINLOCK=y # CONFIG_ARCH_HAS_ILOG2_U32 is not set # CONFIG_ARCH_HAS_ILOG2_U64 is not set CONFIG_GENERIC_HWEIGHT=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_SCHED_OMIT_FRAME_POINTER=y CONFIG_FW_ARC=y CONFIG_CEVT_R4K=y CONFIG_CSRC_R4K=y # CONFIG_ARCH_DMA_ADDR_T_64BIT is not set CONFIG_DMA_NONCOHERENT=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_I8259=y # CONFIG_MIPS_MACHINE is not set # CONFIG_NO_IOPORT_MAP is not set CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_ISA_DMA_SUPPORT_BROKEN=y CONFIG_ISA_DMA_API=y CONFIG_CPU_BIG_ENDIAN=y CONFIG_SYS_SUPPORTS_BIG_ENDIAN=y # CONFIG_MIPS_HUGE_TLB_SUPPORT is not set CONFIG_SWAP_IO_SPACE=y CONFIG_SGI_HAS_INDYDOG=y CONFIG_SGI_HAS_HAL2=y CONFIG_SGI_HAS_SEEQ=y CONFIG_SGI_HAS_WD93=y CONFIG_SGI_HAS_ZILOG=y CONFIG_SGI_HAS_I8042=y CONFIG_DEFAULT_SGI_PARTITION=y CONFIG_FW_ARC32=y CONFIG_BOOT_ELF32=y CONFIG_MIPS_L1_CACHE_SHIFT_7=y CONFIG_MIPS_L1_CACHE_SHIFT=7 # CONFIG_ARC_CONSOLE is not set CONFIG_ARC_PROMLIB=y # # CPU selection # CONFIG_CPU_R4X00=y # CONFIG_CPU_R5000 is not set CONFIG_SYS_HAS_CPU_R4X00=y CONFIG_SYS_HAS_CPU_R5000=y CONFIG_SYS_SUPPORTS_32BIT_KERNEL=y CONFIG_SYS_SUPPORTS_64BIT_KERNEL=y CONFIG_CPU_SUPPORTS_32BIT_KERNEL=y CONFIG_CPU_SUPPORTS_64BIT_KERNEL=y CONFIG_CPU_SUPPORTS_HUGEPAGES=y # # Kernel type # CONFIG_32BIT=y # CONFIG_64BIT is not set # CONFIG_KVM_GUEST is not set CONFIG_PAGE_SIZE_4KB=y # CONFIG_PAGE_SIZE_16KB is not set # CONFIG_PAGE_SIZE_64KB is not set CONFIG_FORCE_MAX_ZONEORDER=11 CONFIG_BOARD_SCACHE=y CONFIG_IP22_CPU_SCACHE=y CONFIG_CPU_GENERIC_DUMP_TLB=y CONFIG_CPU_R4K_FPU=y CONFIG_CPU_R4K_CACHE_TLB=y
Re: [kvm:queue 25/26] include/linux/kvm_host.h:333:11: error: 'KVM_NR_IRQCHIPS' undeclared here (not in a function)
On 30/07/2015 13:51, kbuild test robot wrote: tree: git://git.kernel.org/pub/scm/virt/kvm/kvm.git queue head: 50079e2c9bcb2dd8ffe573c0edddbef9ad6fd809 commit: b7b0d2b2f35c0e6882ea0b342318bf06472ce756 [25/26] KVM: x86: Add EOI exit bitmap inference config: mips-jz4740 (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout b7b0d2b2f35c0e6882ea0b342318bf06472ce756 # save the attached .config to linux build tree make.cross ARCH=mips All error/warnings (new ones prefixed by ): In file included from arch/mips/kernel/asm-offsets.c:22:0: include/linux/kvm_host.h:333:11: error: 'KVM_NR_IRQCHIPS' undeclared here (not in a function) int chip[KVM_NR_IRQCHIPS][KVM_IRQCHIP_NUM_PINS]; ^ include/linux/kvm_host.h:333:28: error: 'KVM_IRQCHIP_NUM_PINS' undeclared here (not in a function) int chip[KVM_NR_IRQCHIPS][KVM_IRQCHIP_NUM_PINS]; ^ make[2]: *** [arch/mips/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [sub-make] Error 2 Fix: diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 821637f69d38..27ccdf91a465 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -329,6 +329,7 @@ struct kvm_kernel_irq_routing_entry { struct hlist_node link; }; +#ifdef CONFIG_HAVE_KVM_IRQCHIP struct kvm_irq_routing_table { int chip[KVM_NR_IRQCHIPS][KVM_IRQCHIP_NUM_PINS]; struct kvm_kernel_irq_routing_entry *rt_entries; @@ -339,6 +340,7 @@ struct kvm_irq_routing_table { */ struct hlist_head map[0]; }; +#endif #ifndef KVM_PRIVATE_MEM_SLOTS #define KVM_PRIVATE_MEM_SLOTS 0 -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html