From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sheng Yang Subject: [PATCH] KVM: Fix compile error caused by no defined CONFIG_X86 Date: Tue, 27 Nov 2007 14:43:17 +0800 Message-ID: <200711271443.18291.sheng.yang@intel.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_Gy7SHfEzjaJzudH" To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org --Boundary-00=_Gy7SHfEzjaJzudH Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =46rom c050ed6225f314b86a0dabf11c7f677de097c39f Mon Sep 17 00:00:00 2001 =46rom: Sheng Yang Date: Tue, 27 Nov 2007 14:41:06 +0800 Subject: [PATCH] KVM: Fix compile error caused by no defined CONFIG_X86 =46or was included by qemu, which didn't define CONFIG_X86, kvm compiles fail on x86 machines. Using __i386__ and __x86_64__ instead. Signed-off-by: Sheng Yang =2D-- include/linux/kvm.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/kvm.h b/include/linux/kvm.h index f0bebd6..9504ec8 100644 =2D-- a/include/linux/kvm.h +++ b/include/linux/kvm.h @@ -51,7 +51,7 @@ struct kvm_irqchip { __u32 pad; union { char dummy[512]; /* reserving space */ =2D#ifdef CONFIG_X86 +#if defined(__i386__) || defined(__x86_64__) struct kvm_pic_state pic; struct kvm_ioapic_state ioapic; #endif =2D-=20 1.5.3.4 --Boundary-00=_Gy7SHfEzjaJzudH Content-Type: text/x-diff; charset="us-ascii"; name="0001-KVM-Fix-compile-error-caused-by-no-defined-CONFIG_X.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-KVM-Fix-compile-error-caused-by-no-defined-CONFIG_X.patch" =46rom c050ed6225f314b86a0dabf11c7f677de097c39f Mon Sep 17 00:00:00 2001 =46rom: Sheng Yang Date: Tue, 27 Nov 2007 14:41:06 +0800 Subject: [PATCH] KVM: Fix compile error caused by no defined CONFIG_X86 =46or was included by qemu, which didn't define CONFIG_X86, kvm compiles fail on x86 machines. Using __i386__ and __x86_64__ instead. Signed-off-by: Sheng Yang =2D-- include/linux/kvm.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/kvm.h b/include/linux/kvm.h index f0bebd6..9504ec8 100644 =2D-- a/include/linux/kvm.h +++ b/include/linux/kvm.h @@ -51,7 +51,7 @@ struct kvm_irqchip { __u32 pad; union { char dummy[512]; /* reserving space */ =2D#ifdef CONFIG_X86 +#if defined(__i386__) || defined(__x86_64__) struct kvm_pic_state pic; struct kvm_ioapic_state ioapic; #endif =2D-=20 1.5.3.4 --Boundary-00=_Gy7SHfEzjaJzudH Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --Boundary-00=_Gy7SHfEzjaJzudH Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --Boundary-00=_Gy7SHfEzjaJzudH--