Skip to contentSkip to conversation

Fix CONFIG_X86_64 guard

PATCH New Anthony Liguori 1 participant 1 message Apr 20, 2007 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix CONFIG_X86_64 guard

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

drivers/kvm/vmx.c +1 -1
index 8baf0c9..28af5b0 100644
@@ -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

-------------------------------------------------------------------------
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/

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel