KVM: Remove unnecessary asm/kvm_host.h includes
authorPeter Xu <peterx@redhat.com>
Fri, 28 Feb 2020 18:30:20 +0000 (13:30 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:57:34 +0000 (17:57 +0100)
Remove includes of asm/kvm_host.h from files that already include
linux/kvm_host.h to make it more obvious that there is no ordering issue
between the two headers.  linux/kvm_host.h includes asm/kvm_host.h to
pick up architecture specific settings, and this will never change, i.e.
including asm/kvm_host.h after linux/kvm_host.h may seem problematic,
but in practice is simply redundant.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
15 files changed:
arch/arm/kvm/coproc.c
arch/arm64/kvm/fpsimd.c
arch/arm64/kvm/guest.c
arch/arm64/kvm/hyp/switch.c
arch/arm64/kvm/sys_regs.c
arch/arm64/kvm/sys_regs_generic_v8.c
arch/powerpc/kvm/book3s_64_vio.c
arch/powerpc/kvm/book3s_64_vio_hv.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/mpic.c
arch/powerpc/kvm/powerpc.c
arch/powerpc/kvm/timing.h
arch/s390/kvm/intercept.c
arch/x86/kvm/mmu/page_track.c
virt/kvm/arm/psci.c

index 07745ee022a121aa482361bcce51dccee7ab8ef6..f0c09049ee9983a6ee6aac0dc0a95844b1cb5fec 100644 (file)
@@ -10,7 +10,6 @@
 #include <linux/kvm_host.h>
 #include <linux/uaccess.h>
 #include <asm/kvm_arm.h>
-#include <asm/kvm_host.h>
 #include <asm/kvm_emulate.h>
 #include <asm/kvm_coproc.h>
 #include <asm/kvm_mmu.h>
index 525010504f9df64a96785cbd588235ec679f21d7..e329a36b2bee5403ce1dd105e0b2c52828fa4d94 100644 (file)
@@ -11,7 +11,6 @@
 #include <linux/kvm_host.h>
 #include <asm/fpsimd.h>
 #include <asm/kvm_asm.h>
-#include <asm/kvm_host.h>
 #include <asm/kvm_mmu.h>
 #include <asm/sysreg.h>
 
index 2bd92301d32f4b094777adf1c0add55e44f54347..23ebe51410f06a3435915bddaa98b688209d0819 100644 (file)
@@ -25,7 +25,6 @@
 #include <asm/kvm.h>
 #include <asm/kvm_emulate.h>
 #include <asm/kvm_coproc.h>
-#include <asm/kvm_host.h>
 #include <asm/sigcontext.h>
 
 #include "trace.h"
index dfe8dd1725128405a1661a946782d812695d2d15..f3e0ab9615659ea7570a79e1fd6dada85821fe3b 100644 (file)
@@ -17,7 +17,6 @@
 #include <asm/kprobes.h>
 #include <asm/kvm_asm.h>
 #include <asm/kvm_emulate.h>
-#include <asm/kvm_host.h>
 #include <asm/kvm_hyp.h>
 #include <asm/kvm_mmu.h>
 #include <asm/fpsimd.h>
index 3e909b117f0cd8e5bb704463c363e9ba23fb6041..b95f7b7743c827983d3aa97b4655670915022af3 100644 (file)
@@ -22,7 +22,6 @@
 #include <asm/kvm_arm.h>
 #include <asm/kvm_coproc.h>
 #include <asm/kvm_emulate.h>
-#include <asm/kvm_host.h>
 #include <asm/kvm_hyp.h>
 #include <asm/kvm_mmu.h>
 #include <asm/perf_event.h>
index 2b4a3e2d1b89f30ca5bb647a194976368c0b561f..9cb6b4c8355a9ab1808dacca8f902eafeeccd38f 100644 (file)
@@ -12,7 +12,6 @@
 #include <asm/cputype.h>
 #include <asm/kvm_arm.h>
 #include <asm/kvm_asm.h>
-#include <asm/kvm_host.h>
 #include <asm/kvm_emulate.h>
 #include <asm/kvm_coproc.h>
 #include <asm/sysreg.h>
index ee6c103bb7d504dcdfbd9d3782de1fc9683a222f..50555ad1db93218bfa71edf5ce603b256c1e5a94 100644 (file)
@@ -27,7 +27,6 @@
 #include <asm/hvcall.h>
 #include <asm/synch.h>
 #include <asm/ppc-opcode.h>
-#include <asm/kvm_host.h>
 #include <asm/udbg.h>
 #include <asm/iommu.h>
 #include <asm/tce.h>
index ab6eeb8e753e55cae4bea240c05e53249fc53ddf..6fcaf1fa8e0295b1f58ae255389f7d622b126848 100644 (file)
@@ -24,7 +24,6 @@
 #include <asm/hvcall.h>
 #include <asm/synch.h>
 #include <asm/ppc-opcode.h>
-#include <asm/kvm_host.h>
 #include <asm/udbg.h>
 #include <asm/iommu.h>
 #include <asm/tce.h>
index 6a4a30b9d7503ef80ea6a517b1c483e2363717c0..fbc55a12b6916075f33b65e5cb677ae5bdc15856 100644 (file)
@@ -72,7 +72,6 @@
 #include <asm/xics.h>
 #include <asm/xive.h>
 #include <asm/hw_breakpoint.h>
-#include <asm/kvm_host.h>
 #include <asm/kvm_book3s_uvmem.h>
 #include <asm/ultravisor.h>
 
index fe312c160d9752b5af12e3c68a81aec0c3cf820a..23e9c2bd9f2710f653b985c35de2b316763ee092 100644 (file)
@@ -32,7 +32,6 @@
 #include <linux/uaccess.h>
 #include <asm/mpic.h>
 #include <asm/kvm_para.h>
-#include <asm/kvm_host.h>
 #include <asm/kvm_ppc.h>
 #include <kvm/iodev.h>
 
index 838cdcd2db12d3638d4dc24624abcc01909c3d0c..62ee66d5eb6f086d523ef3f1870340db1e51a874 100644 (file)
@@ -32,7 +32,6 @@
 #include <asm/plpar_wrappers.h>
 #endif
 #include <asm/ultravisor.h>
-#include <asm/kvm_host.h>
 
 #include "timing.h"
 #include "irq.h"
index ace65f9fed3014268e1c5f52d8461bdd981e3c08..feef7885ba8269f3e842584166fbdd558efe22cc 100644 (file)
@@ -10,7 +10,6 @@
 #define __POWERPC_KVM_EXITTIMING_H__
 
 #include <linux/kvm_host.h>
-#include <asm/kvm_host.h>
 
 #ifdef CONFIG_KVM_EXIT_TIMING
 void kvmppc_init_timing_stats(struct kvm_vcpu *vcpu);
index a389fa85cca2d4bcb2ff6f715ffd5ffe682eb965..3655196f1c036bfd6eca6e81ece0d2beb2f93f53 100644 (file)
@@ -12,7 +12,6 @@
 #include <linux/errno.h>
 #include <linux/pagemap.h>
 
-#include <asm/kvm_host.h>
 #include <asm/asm-offsets.h>
 #include <asm/irq.h>
 #include <asm/sysinfo.h>
index d125ec379c79b3a022e9ad59b9fe4c86379cbded..ddc1ec3bdacd88d176b126a5d7e2e23c59b47c0f 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/kvm_host.h>
 #include <linux/rculist.h>
 
-#include <asm/kvm_host.h>
 #include <asm/kvm_page_track.h>
 
 #include "mmu.h"
index 17e2bdd4b76f5e7bccc892ed41d746adc7bc9751..14a162e295a947f70cf5b6bd8e573af7b2d628c8 100644 (file)
@@ -12,7 +12,6 @@
 
 #include <asm/cputype.h>
 #include <asm/kvm_emulate.h>
-#include <asm/kvm_host.h>
 
 #include <kvm/arm_psci.h>
 #include <kvm/arm_hypercalls.h>