]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: allow host header to be included even for !CONFIG_KVM
authorKevin Hilman <khilman@linaro.org>
Fri, 15 Mar 2013 00:13:46 +0000 (17:13 -0700)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 18 Mar 2013 21:03:03 +0000 (18:03 -0300)
commitc54e3f82a6e20de4efea980d41c2fd4bd20c9f50
treef45e7180794da5bf77914e1df085e4b99d490f39
parent5d5acf7f3e8c669857f1288b923731e4b4ceb550
KVM: allow host header to be included even for !CONFIG_KVM

The new context tracking subsystem unconditionally includes kvm_host.h
headers for the guest enter/exit macros.  This causes a compile
failure when KVM is not enabled.

Fix by adding an IS_ENABLED(CONFIG_KVM) check to kvm_host so it can
be included/compiled even when KVM is not enabled.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
include/linux/kvm_host.h