From: Jeremy Fitzhardinge Date: Mon, 26 Jul 2010 17:38:45 +0000 (-0700) Subject: xen/pvhvm: fix build problem when !CONFIG_XEN X-Git-Tag: v2.6.36-rc1~551^2~1^2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b43275d661baa5f1f72dacd9033d6eda09d9fe87;p=users%2Fjedix%2Flinux-maple.git xen/pvhvm: fix build problem when !CONFIG_XEN x86_hyper_xen_hvm is only defined when Xen is enabled in the kernel config. Signed-off-by: Jeremy Fitzhardinge --- diff --git a/arch/x86/kernel/cpu/hypervisor.c b/arch/x86/kernel/cpu/hypervisor.c index bffd47c10fed..5bccedcb9121 100644 --- a/arch/x86/kernel/cpu/hypervisor.c +++ b/arch/x86/kernel/cpu/hypervisor.c @@ -34,7 +34,9 @@ static const __initconst struct hypervisor_x86 * const hypervisors[] = { &x86_hyper_vmware, &x86_hyper_ms_hyperv, +#ifdef CONFIG_XEN &x86_hyper_xen_hvm, +#endif }; const struct hypervisor_x86 *x86_hyper;