All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: kbuild test robot <fengguang.wu@intel.com>,
	Steve Rutherford <srutherford@google.com>
Cc: kbuild-all@01.org, kvm@vger.kernel.org
Subject: Re: [kvm:queue 25/26] include/linux/kvm_host.h:333:11: error: 'KVM_NR_IRQCHIPS' undeclared here (not in a function)
Date: Thu, 30 Jul 2015 14:13:19 +0200	[thread overview]
Message-ID: <55BA14DF.40808@redhat.com> (raw)
In-Reply-To: <201507301949.8PDTloQ2%fengguang.wu@intel.com>



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

      reply	other threads:[~2015-07-30 12:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-30 11:51 [kvm:queue 25/26] include/linux/kvm_host.h:333:11: error: 'KVM_NR_IRQCHIPS' undeclared here (not in a function) kbuild test robot
2015-07-30 12:13 ` Paolo Bonzini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55BA14DF.40808@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=kvm@vger.kernel.org \
    --cc=srutherford@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.