RE: next-0409: kvm-ia64 build failure when !MODULES

"Zhang, Xiantao" <[email protected]>
Newsgroups org.kernel.vger.kvm-ia64,org.kernel.vger.linux-next
Message-ID <706158FABBBA044BAD4FE898A02E4BC2327A201E@pdsmsx503.ccr.corp.intel.com>
Hi, Avi 
    Please apply this patch to fix the issue. 
Xiantao


From 053f7d5480916b693ffc89f7d4c57883467dbeff Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <[email protected]>
Date: Thu, 9 Apr 2009 21:27:44 +0800
Subject: [PATCH] KVM: ia64: make kvm depend on CONFIG_MODULES.

Since kvm-intel modue can't be built-in, so make kvm depend on
CONFIG_MODULES.
Signed-off-by: Xiantao Zhang <[email protected]>
---
 arch/ia64/kvm/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/ia64/kvm/Kconfig b/arch/ia64/kvm/Kconfig
index 0a2d6b8..64d5209 100644
--- a/arch/ia64/kvm/Kconfig
+++ b/arch/ia64/kvm/Kconfig
@@ -23,7 +23,7 @@ if VIRTUALIZATION

 config KVM
        tristate "Kernel-based Virtual Machine (KVM) support"
-       depends on HAVE_KVM && EXPERIMENTAL
+       depends on HAVE_KVM && MODULES && EXPERIMENTAL
        # for device assignment:
        depends on PCI
        select PREEMPT_NOTIFIERS
--
1.6.0


Alexander Beregalov wrote:
> Hi
> 
> arch/ia64/kvm/kvm-ia64.c: In function 'kvm_patch_vmm':
> arch/ia64/kvm/kvm-ia64.c:1686: error: dereferencing pointer to
> incomplete type arch/ia64/kvm/kvm-ia64.c: In function
> 'kvm_relocate_vmm': arch/ia64/kvm/kvm-ia64.c:1718: error:
> dereferencing pointer to incomplete type
> arch/ia64/kvm/kvm-ia64.c:1719: error: dereferencing pointer to
> incomplete type  
> 
> # CONFIG_MODULES is not set
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.