Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: Remove unnecessary asm/kvm_host.h includes

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>

authored by

Peter Xu and committed by
Paolo Bonzini
4d395762 23581ea8

-15
-1
arch/arm/kvm/coproc.c
··· 10 10 #include <linux/kvm_host.h> 11 11 #include <linux/uaccess.h> 12 12 #include <asm/kvm_arm.h> 13 - #include <asm/kvm_host.h> 14 13 #include <asm/kvm_emulate.h> 15 14 #include <asm/kvm_coproc.h> 16 15 #include <asm/kvm_mmu.h>
-1
arch/arm64/kvm/fpsimd.c
··· 11 11 #include <linux/kvm_host.h> 12 12 #include <asm/fpsimd.h> 13 13 #include <asm/kvm_asm.h> 14 - #include <asm/kvm_host.h> 15 14 #include <asm/kvm_mmu.h> 16 15 #include <asm/sysreg.h> 17 16
-1
arch/arm64/kvm/guest.c
··· 25 25 #include <asm/kvm.h> 26 26 #include <asm/kvm_emulate.h> 27 27 #include <asm/kvm_coproc.h> 28 - #include <asm/kvm_host.h> 29 28 #include <asm/sigcontext.h> 30 29 31 30 #include "trace.h"
-1
arch/arm64/kvm/hyp/switch.c
··· 17 17 #include <asm/kprobes.h> 18 18 #include <asm/kvm_asm.h> 19 19 #include <asm/kvm_emulate.h> 20 - #include <asm/kvm_host.h> 21 20 #include <asm/kvm_hyp.h> 22 21 #include <asm/kvm_mmu.h> 23 22 #include <asm/fpsimd.h>
-1
arch/arm64/kvm/sys_regs.c
··· 22 22 #include <asm/kvm_arm.h> 23 23 #include <asm/kvm_coproc.h> 24 24 #include <asm/kvm_emulate.h> 25 - #include <asm/kvm_host.h> 26 25 #include <asm/kvm_hyp.h> 27 26 #include <asm/kvm_mmu.h> 28 27 #include <asm/perf_event.h>
-1
arch/arm64/kvm/sys_regs_generic_v8.c
··· 12 12 #include <asm/cputype.h> 13 13 #include <asm/kvm_arm.h> 14 14 #include <asm/kvm_asm.h> 15 - #include <asm/kvm_host.h> 16 15 #include <asm/kvm_emulate.h> 17 16 #include <asm/kvm_coproc.h> 18 17 #include <asm/sysreg.h>
-1
arch/powerpc/kvm/book3s_64_vio.c
··· 27 27 #include <asm/hvcall.h> 28 28 #include <asm/synch.h> 29 29 #include <asm/ppc-opcode.h> 30 - #include <asm/kvm_host.h> 31 30 #include <asm/udbg.h> 32 31 #include <asm/iommu.h> 33 32 #include <asm/tce.h>
-1
arch/powerpc/kvm/book3s_64_vio_hv.c
··· 24 24 #include <asm/hvcall.h> 25 25 #include <asm/synch.h> 26 26 #include <asm/ppc-opcode.h> 27 - #include <asm/kvm_host.h> 28 27 #include <asm/udbg.h> 29 28 #include <asm/iommu.h> 30 29 #include <asm/tce.h>
-1
arch/powerpc/kvm/book3s_hv.c
··· 72 72 #include <asm/xics.h> 73 73 #include <asm/xive.h> 74 74 #include <asm/hw_breakpoint.h> 75 - #include <asm/kvm_host.h> 76 75 #include <asm/kvm_book3s_uvmem.h> 77 76 #include <asm/ultravisor.h> 78 77
-1
arch/powerpc/kvm/mpic.c
··· 32 32 #include <linux/uaccess.h> 33 33 #include <asm/mpic.h> 34 34 #include <asm/kvm_para.h> 35 - #include <asm/kvm_host.h> 36 35 #include <asm/kvm_ppc.h> 37 36 #include <kvm/iodev.h> 38 37
-1
arch/powerpc/kvm/powerpc.c
··· 32 32 #include <asm/plpar_wrappers.h> 33 33 #endif 34 34 #include <asm/ultravisor.h> 35 - #include <asm/kvm_host.h> 36 35 37 36 #include "timing.h" 38 37 #include "irq.h"
-1
arch/powerpc/kvm/timing.h
··· 10 10 #define __POWERPC_KVM_EXITTIMING_H__ 11 11 12 12 #include <linux/kvm_host.h> 13 - #include <asm/kvm_host.h> 14 13 15 14 #ifdef CONFIG_KVM_EXIT_TIMING 16 15 void kvmppc_init_timing_stats(struct kvm_vcpu *vcpu);
-1
arch/s390/kvm/intercept.c
··· 12 12 #include <linux/errno.h> 13 13 #include <linux/pagemap.h> 14 14 15 - #include <asm/kvm_host.h> 16 15 #include <asm/asm-offsets.h> 17 16 #include <asm/irq.h> 18 17 #include <asm/sysinfo.h>
-1
arch/x86/kvm/mmu/page_track.c
··· 14 14 #include <linux/kvm_host.h> 15 15 #include <linux/rculist.h> 16 16 17 - #include <asm/kvm_host.h> 18 17 #include <asm/kvm_page_track.h> 19 18 20 19 #include "mmu.h"
-1
virt/kvm/arm/psci.c
··· 12 12 13 13 #include <asm/cputype.h> 14 14 #include <asm/kvm_emulate.h> 15 - #include <asm/kvm_host.h> 16 15 17 16 #include <kvm/arm_psci.h> 18 17 #include <kvm/arm_hypercalls.h>