]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: VMX: redo fix for link error without CONFIG_HYPERV
authorArnd Bergmann <arnd@arndb.de>
Fri, 25 May 2018 15:36:17 +0000 (17:36 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Jun 2018 16:53:14 +0000 (18:53 +0200)
commit02cdc36ff5990b6e6ef6aadb147e72cbb300d5e6
treea241350247168c8a84f72bf352da3988a4143fd6
parent859614a53fd983eb4b0b1757830606e17781ff63
KVM: x86: VMX: redo fix for link error without CONFIG_HYPERV

Arnd had sent this patch to the KVM mailing list, but it slipped through
the cracks of maintainers hand-off, and therefore wasn't included in
the pull request.

The same issue had been fixed by Linus in commit 65dbdb1 ("KVM: x86:
VMX: fix build without hyper-v", 2018-06-12) as a self-described
"quick-and-hacky build fix".  However, checking the compile-time
configuration symbol with IS_ENABLED is cleaner and it is enough to
avoid the link error, so switch to Arnd's solution.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[Rewritten commit message. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c