浏览代码

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 <jeremy.fitzhardinge@citrix.com>
Jeremy Fitzhardinge 15 年之前
父节点
当前提交
b43275d661
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/x86/kernel/cpu/hypervisor.c

+ 2 - 0
arch/x86/kernel/cpu/hypervisor.c

@@ -34,7 +34,9 @@ static const __initconst struct hypervisor_x86 * const hypervisors[] =
 {
 {
 	&x86_hyper_vmware,
 	&x86_hyper_vmware,
 	&x86_hyper_ms_hyperv,
 	&x86_hyper_ms_hyperv,
+#ifdef CONFIG_XEN
 	&x86_hyper_xen_hvm,
 	&x86_hyper_xen_hvm,
+#endif
 };
 };
 
 
 const struct hypervisor_x86 *x86_hyper;
 const struct hypervisor_x86 *x86_hyper;