xen/pvhvm: fix build problem when !CONFIG_XEN
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Mon, 26 Jul 2010 17:38:45 +0000 (10:38 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Tue, 27 Jul 2010 06:13:28 +0000 (23:13 -0700)
x86_hyper_xen_hvm is only defined when Xen is enabled in the kernel
config.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/kernel/cpu/hypervisor.c

index bffd47c..5bccedc 100644 (file)
@@ -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;