]> git.baikalelectronics.ru Git - kernel.git/commit
x86/jailhouse: Hide x2apic code when CONFIG_X86_X2APIC=n
authorThomas Gleixner <tglx@linutronix.de>
Mon, 15 Jan 2018 09:24:34 +0000 (10:24 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 15 Jan 2018 09:26:18 +0000 (10:26 +0100)
commit66c490f262bdee181c0276d3930dd6d36ca5ae8d
tree0bbab8b49e0b64e521374cac9385d047ff0086af
parent16d3bcbaa7ec4ec14c89371d2a2dc6651809b181
x86/jailhouse: Hide x2apic code when CONFIG_X86_X2APIC=n

x2apic_phys is not available when CONFIG_X86_X2APIC=n and the code is not
optimized out resulting in a build fail:

jailhouse.c: In function ‘jailhouse_get_smp_config’:
jailhouse.c:73:3: error: ‘x2apic_phys’ undeclared (first use in this function)

Fixes: 5b08402e3393 ("x86/jailhouse: Enable APIC and SMP support")
Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: jailhouse-dev@googlegroups.com
arch/x86/kernel/jailhouse.c