x86, paravirt, 64-bit: fix compile errors with IA32_EMULATION off
authorJeremy Fitzhardinge <jeremy@goop.org>
Mon, 30 Jun 2008 18:10:53 +0000 (11:10 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 11:16:13 +0000 (13:16 +0200)
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/paravirt.c

index 27819e3e4245e7316e0ce141402dc5334a8c44bb..e7e5652f65bcbc2933bb0fd4e752ffbc8f1f01a2 100644 (file)
@@ -337,9 +337,13 @@ struct pv_cpu_ops pv_cpu_ops = {
        .write_idt_entry = native_write_idt_entry,
        .load_sp0 = native_load_sp0,
 
+#if defined(CONFIG_X86_32) || defined(CONFIG_IA32_EMULATION)
        .irq_enable_sysexit = native_irq_enable_sysexit,
+#endif
 #ifdef CONFIG_X86_64
+#ifdef CONFIG_IA32_EMULATION
        .usergs_sysret32 = native_usergs_sysret32,
+#endif
        .usergs_sysret64 = native_usergs_sysret64,
 #endif
        .iret = native_iret,