public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix CONFIG_X86_64 guard
@ 2007-04-20 22:11 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2007-04-20 22:11 UTC (permalink / raw)
  To: kvm-devel, Avi Kivity

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

Using #if results in a GCC warning when CONFIG_X86_64 is not defined.  
Attached patch switches to #ifdef which behaves appropriately.

This is against the master branch of Avi's kernel tree.

Regards,

Anthony Liguori

Signed-off-by: Anthony Liguori <aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

[-- Attachment #2: kvm-config.diff --]
[-- Type: text/x-patch, Size: 413 bytes --]

diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index 8baf0c9..28af5b0 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -328,7 +328,7 @@ static void setup_msrs(struct kvm_vcpu *vcpu)
         * if efer.sce is enabled.
         */
        --nr_good_msrs;
-#if CONFIG_X86_64
+#ifdef CONFIG_X86_64
        if (is_long_mode(vcpu) && (vcpu->shadow_efer & EFER_SCE))
                ++nr_good_msrs;
 #endif

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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

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

only message in thread, other threads:[~2007-04-20 22:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-20 22:11 [PATCH] Fix CONFIG_X86_64 guard Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox