Fix CONFIG_X86_64 guard
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
Signed-off-by Anthony Liguori <aliguori-r/[email protected]>
drivers/kvm/vmx.c +1 -1
@@ -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