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 <[EMAIL PROTECTED]>
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
-------------------------------------------------------------------------
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
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to