linux/arch
Thomas Gleixner 5fa4ec9cb2 x86/kvm: Make it compile on 32bit and with HYPYERVISOR_GUEST=n
The reenlightment support for hyperv slapped a direct reference to
x86_hyper_type into the kvm code which results in the following build
failure when CONFIG_HYPERVISOR_GUEST=n:

arch/x86/kvm/x86.c:6259:6: error: ‘x86_hyper_type’ undeclared (first use in this function)
arch/x86/kvm/x86.c:6259:6: note: each undeclared identifier is reported only once for each function it appears in

Use the proper helper function to cure that.

The 32bit compile fails because of:

arch/x86/kvm/x86.c:5936:13: warning: ‘kvm_hyperv_tsc_notifier’ defined but not used [-Wunused-function]

which is a real trainwreck engineering artwork. The callsite is wrapped
into #ifdef CONFIG_X86_64, but the function itself has the #ifdef inside
the function body. Make the function itself wrapped into the ifdef to cure
that.

Qualiteee....

Fixes: 0092e4346f ("x86/kvm: Support Hyper-V reenlightenment")
Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Cc: kvm@vger.kernel.org
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: "Michael Kelley (EOSG)" <Michael.H.Kelley@microsoft.com>
Cc: Roman Kagan <rkagan@virtuozzo.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: devel@linuxdriverproject.org
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Cathy Avery <cavery@redhat.com>
Cc: Mohammed Gamal <mmorsy@redhat.com>
2018-01-31 10:29:40 +01:00
..
alpha init_task out-of-lining 2018-01-29 09:08:34 -08:00
arc init_task out-of-lining 2018-01-29 09:08:34 -08:00
arm Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-01-29 16:47:21 -08:00
arm64 Merge branch 'efi-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-01-30 10:42:39 -08:00
blackfin Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
c6x Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
cris Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
frv Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
h8300 Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
hexagon Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
ia64 ACPI updates for v4.16-rc1 2018-01-29 10:17:53 -08:00
m32r init_task out-of-lining 2018-01-29 09:08:34 -08:00
m68k m68k updates for 4.16 2018-01-29 16:37:15 -08:00
metag Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
microblaze Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
mips init_task out-of-lining 2018-01-29 09:08:34 -08:00
mn10300 Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-01-30 10:15:30 -08:00
nios2 Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
openrisc Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
parisc init_task out-of-lining 2018-01-29 09:08:34 -08:00
powerpc Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-01-29 16:47:21 -08:00
riscv init_task out-of-lining 2018-01-29 09:08:34 -08:00
s390 init_task out-of-lining 2018-01-29 09:08:34 -08:00
score Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
sh init_task out-of-lining 2018-01-29 09:08:34 -08:00
sparc init_task out-of-lining 2018-01-29 09:08:34 -08:00
tile Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
um Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
unicore32 init_task out-of-lining 2018-01-29 09:08:34 -08:00
x86 x86/kvm: Make it compile on 32bit and with HYPYERVISOR_GUEST=n 2018-01-31 10:29:40 +01:00
xtensa Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-01-29 16:47:21 -08:00
.gitignore
Kconfig Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00