Skip to content

Commit 102d0a4

Browse files
jsgfIngo Molnar
authored andcommitted
x86, paravirt, 64-bit: fix compile errors with IA32_EMULATION off
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 3ae960a commit 102d0a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/x86/kernel/paravirt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,13 @@ struct pv_cpu_ops pv_cpu_ops = {
337337
.write_idt_entry = native_write_idt_entry,
338338
.load_sp0 = native_load_sp0,
339339

340+
#if defined(CONFIG_X86_32) || defined(CONFIG_IA32_EMULATION)
340341
.irq_enable_sysexit = native_irq_enable_sysexit,
342+
#endif
341343
#ifdef CONFIG_X86_64
344+
#ifdef CONFIG_IA32_EMULATION
342345
.usergs_sysret32 = native_usergs_sysret32,
346+
#endif
343347
.usergs_sysret64 = native_usergs_sysret64,
344348
#endif
345349
.iret = native_iret,

0 commit comments

Comments
 (0)