]> asedeno.scripts.mit.edu Git - linux.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)
commitbe6d447e4f9c5cc6d48aabc3ec362b6a559c3fd7
tree0bbab8b49e0b64e521374cac9385d047ff0086af
parenta0c01e4bb92d085462c293091a521cb9e7000371
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: 11c8dc419bbc ("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