]> xenbits.xensource.com Git - xen.git/commitdiff
x86: do not include asm/hvm/support.h when not used
authorXenia Ragiadakou <burzalodowa@gmail.com>
Tue, 7 Feb 2023 14:19:02 +0000 (15:19 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Feb 2023 14:19:02 +0000 (15:19 +0100)
When none of the declarations and macro definitions in asm/hvm/support.h is
referred in the file, do not include the header.

To fix subsequent build errors, which were not triggered before due to the
indirect inclusion of the missing headers by asm/hvm/support.h, include any
missing headers.

No functional change intended.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
38 files changed:
xen/arch/x86/cpu/amd.c
xen/arch/x86/cpu/intel.c
xen/arch/x86/cpu/vpmu.c
xen/arch/x86/cpu/vpmu_intel.c
xen/arch/x86/crash.c
xen/arch/x86/domain.c
xen/arch/x86/domctl.c
xen/arch/x86/emul-i8254.c
xen/arch/x86/hvm/hpet.c
xen/arch/x86/hvm/io.c
xen/arch/x86/hvm/irq.c
xen/arch/x86/hvm/pmtimer.c
xen/arch/x86/hvm/rtc.c
xen/arch/x86/hvm/save.c
xen/arch/x86/hvm/stdvga.c
xen/arch/x86/hvm/svm/emulate.c
xen/arch/x86/hvm/svm/intr.c
xen/arch/x86/hvm/svm/vmcb.c
xen/arch/x86/hvm/viridian/synic.c
xen/arch/x86/hvm/viridian/time.c
xen/arch/x86/hvm/viridian/viridian.c
xen/arch/x86/hvm/vmx/intr.c
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/hvm/vmx/vvmx.c
xen/arch/x86/hvm/vpic.c
xen/arch/x86/hvm/vpt.c
xen/arch/x86/i387.c
xen/arch/x86/include/asm/hvm/vmx/vmx.h
xen/arch/x86/mm/altp2m.c
xen/arch/x86/mm/hap/nested_ept.c
xen/arch/x86/mm/hap/nested_hap.c
xen/arch/x86/oprofile/op_model_athlon.c
xen/arch/x86/oprofile/xenoprof.c
xen/arch/x86/smp.c
xen/arch/x86/sysctl.c
xen/arch/x86/x86_64/traps.c
xen/arch/x86/xstate.c
xen/drivers/passthrough/x86/hvm.c

index 1ddb55cbe520940bd10f255e42a4b1b4fc111809..caafe4474021a1fac557de479d57574f2888dc74 100644 (file)
@@ -4,12 +4,12 @@
 #include <xen/param.h>
 #include <xen/smp.h>
 #include <xen/pci.h>
+#include <xen/sched.h>
 #include <xen/warning.h>
 #include <asm/io.h>
 #include <asm/msr.h>
 #include <asm/processor.h>
 #include <asm/amd.h>
-#include <asm/hvm/support.h>
 #include <asm/spec_ctrl.h>
 #include <asm/acpi.h>
 #include <asm/apic.h>
index dc6a0c780715501a4a5411f71ecd99392f6e7a37..71fc1a1e189947a1ed9a8bc296fcc1fa6fece3ef 100644 (file)
@@ -1,5 +1,6 @@
 #include <xen/init.h>
 #include <xen/kernel.h>
+#include <xen/sched.h>
 #include <xen/string.h>
 #include <xen/bitops.h>
 #include <xen/smp.h>
@@ -10,7 +11,6 @@
 #include <asm/apic.h>
 #include <asm/i387.h>
 #include <mach_apic.h>
-#include <asm/hvm/support.h>
 
 #include "cpu.h"
 
index 33e2fca8cd200392a4825bafa2453387cb5fe24a..b6b7342fb466e4ad2240516c0c3afc21472566e7 100644 (file)
@@ -30,7 +30,6 @@
 #include <asm/nmi.h>
 #include <asm/p2m.h>
 #include <asm/vpmu.h>
-#include <asm/hvm/support.h>
 #include <asm/apic.h>
 #include <irq_vectors.h>
 #include <public/pmu.h>
index b91d818be0b6a81b63b1c01c44e4f1011820bf6b..a8df52579db8e455b24f2f4a89367cbfe81d77ab 100644 (file)
@@ -29,7 +29,6 @@
 #include <asm/msr.h>
 #include <asm/msr-index.h>
 #include <asm/vpmu.h>
-#include <asm/hvm/support.h>
 #include <asm/hvm/vlapic.h>
 #include <asm/hvm/vmx/vmx.h>
 #include <asm/hvm/vmx/vmcs.h>
index 99089f77a7ebaf1df3eb10c6e95c048ccd93ecb3..7850f0af2473ee308d3cd8925a6587d8b04a4a6c 100644 (file)
@@ -24,7 +24,6 @@
 #include <xen/keyhandler.h>
 #include <public/xen.h>
 #include <asm/shared.h>
-#include <asm/hvm/support.h>
 #include <asm/apic.h>
 #include <asm/io_apic.h>
 #include <xen/iommu.h>
index a3c88cd729b9bba81524b5c75ed91d5939c981ea..db3ebf062dabb8b6969bd98a281cb396c9163a38 100644 (file)
@@ -52,7 +52,6 @@
 #include <asm/ldt.h>
 #include <asm/hvm/hvm.h>
 #include <asm/hvm/nestedhvm.h>
-#include <asm/hvm/support.h>
 #include <asm/hvm/svm/svm.h>
 #include <asm/hvm/viridian.h>
 #include <asm/debugreg.h>
index e9bfbc57a794ee139c3b5761378f15eb20cb1c8e..2118fcad5dfeb4e0067f4f80e4bcd4e224d049fc 100644 (file)
@@ -25,7 +25,6 @@
 #include <asm/irq.h>
 #include <asm/hvm/emulate.h>
 #include <asm/hvm/hvm.h>
-#include <asm/hvm/support.h>
 #include <asm/processor.h>
 #include <asm/acpi.h> /* for hvm_acpi_power_button */
 #include <xen/hypercall.h> /* for arch_do_domctl */
index 18894b63488e3724cd2a621c2c1ca3aa203245e9..1688b7e4587986fef7a8444e7be23067a4df8a19 100644 (file)
@@ -34,7 +34,7 @@
 #include <asm/time.h>
 #include <asm/hvm/hvm.h>
 #include <asm/hvm/io.h>
-#include <asm/hvm/support.h>
+#include <asm/hvm/save.h>
 #include <asm/hvm/vpt.h>
 #include <asm/current.h>
 
index 45c7b9b40688eb1529f0387645cd844eed1577cb..c65e1b27d09ea5931fc13919697de088c1b9a8fe 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <asm/hvm/vpt.h>
 #include <asm/hvm/io.h>
-#include <asm/hvm/support.h>
+#include <asm/hvm/save.h>
 #include <asm/hvm/trace.h>
 #include <asm/current.h>
 #include <asm/hpet.h>
index 0309d05cfdfc141022474350ce97cfcc33056761..5ae209d3b6b3a5453290320d83bc09a9a3c6c8cd 100644 (file)
@@ -36,7 +36,6 @@
 #include <asm/shadow.h>
 #include <asm/p2m.h>
 #include <asm/hvm/hvm.h>
-#include <asm/hvm/support.h>
 #include <asm/hvm/vpt.h>
 #include <asm/hvm/vpic.h>
 #include <asm/hvm/vlapic.h>
index d93ffe4546a085e1aa1ed03a7d36edb4a0e665f3..4fe87a71c12b36bd88233c061130105317a1654c 100644 (file)
@@ -24,7 +24,7 @@
 #include <xen/irq.h>
 #include <xen/keyhandler.h>
 #include <asm/hvm/domain.h>
-#include <asm/hvm/support.h>
+#include <asm/hvm/save.h>
 #include <asm/msi.h>
 #include <public/hvm/params.h>
 
index 2a89bbdfa5b8c4ccb3e8f89b87c0cf41b91db829..b89d0fd53ba16422792af9940a0fa1fac577f772 100644 (file)
  * this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <xen/sched.h>
 #include <asm/hvm/vpt.h>
 #include <asm/hvm/io.h>
-#include <asm/hvm/support.h>
+#include <asm/hvm/save.h>
 #include <asm/acpi.h> /* for hvm_acpi_power_button prototype */
 #include <public/hvm/params.h>
 
index d21925db08bc52c9e23af4f866d309742df3bcd0..44f2fb668db09aa77570401d760f3232d5ec4b28 100644 (file)
  * IN THE SOFTWARE.
  */
 
+#include <xen/sched.h>
 #include <asm/mc146818rtc.h>
 #include <asm/hvm/vpt.h>
 #include <asm/hvm/io.h>
-#include <asm/hvm/support.h>
+#include <asm/hvm/save.h>
 #include <asm/current.h>
 #include <xen/trace.h>
 #include <public/hvm/params.h>
index 86c82cbd7456ee515857f095f31116cf5349799b..c1675e3d9fb097ec88eda0b333cc6c0f6561d326 100644 (file)
@@ -24,8 +24,6 @@
 #include <xen/softirq.h>
 #include <xen/version.h>
 
-#include <asm/hvm/support.h>
-
 #include <public/hvm/save.h>
 
 void arch_hvm_save(struct domain *d, struct hvm_save_header *hdr)
index be8200c8d072fc41f86a02b266f56391a0391c72..798a9a0549edafc3ba87a657cba863a8c4413719 100644 (file)
@@ -31,7 +31,6 @@
 #include <xen/types.h>
 #include <xen/sched.h>
 #include <xen/domain_page.h>
-#include <asm/hvm/support.h>
 #include <xen/numa.h>
 #include <xen/paging.h>
 
index 635b3705f7979f91c1e598099e8fa30fbe936b9f..16fc134883cff49c1fc335cbfbabc321d371295d 100644 (file)
@@ -22,7 +22,6 @@
 #include <asm/msr.h>
 #include <asm/hvm/emulate.h>
 #include <asm/hvm/hvm.h>
-#include <asm/hvm/support.h>
 #include <asm/hvm/svm/svm.h>
 #include <asm/hvm/svm/vmcb.h>
 #include <asm/hvm/svm/emulate.h>
index 7f815d230785f3ba1a17062455fb5c78e60ece92..9525f3559392de8063bca90fd5000db82499ec06 100644 (file)
@@ -27,7 +27,6 @@
 #include <asm/paging.h>
 #include <asm/hvm/hvm.h>
 #include <asm/hvm/io.h>
-#include <asm/hvm/support.h>
 #include <asm/hvm/vlapic.h>
 #include <asm/hvm/svm/svm.h>
 #include <asm/hvm/svm/intr.h>
index 0fc57dfd71cf3c7fb0d4c66d24f2a35f885672ff..305d4767e38726540a637c1a2d7f9f2c6c482e2c 100644 (file)
@@ -26,7 +26,6 @@
 #include <asm/hvm/svm/vmcb.h>
 #include <asm/msr-index.h>
 #include <asm/p2m.h>
-#include <asm/hvm/support.h>
 #include <asm/hvm/svm/svm.h>
 #include <asm/hvm/svm/svmdebug.h>
 #include <asm/spec_ctrl.h>
index 856bb898b82c8e6fe7173f1440ce6dff95bca767..83d7addfc350084fa403f06737920d32daf0e721 100644 (file)
@@ -13,7 +13,6 @@
 
 #include <asm/apic.h>
 #include <asm/guest/hyperv-tlfs.h>
-#include <asm/hvm/support.h>
 #include <asm/hvm/vlapic.h>
 
 #include "private.h"
index b56fd6766292db0af034e2f2dfeff9bd0a9509f0..a3ea3fa0671f34a83f9f53faa092a134d55a6904 100644 (file)
@@ -15,7 +15,6 @@
 #include <asm/event.h>
 #include <asm/guest/hyperv.h>
 #include <asm/guest/hyperv-tlfs.h>
-#include <asm/hvm/support.h>
 
 #include "private.h"
 
index 2937ddd3a83b1963d132ec2ffaab0d243f0af388..7405c117bc97d1cbaca88d0b5996ca5749da2334 100644 (file)
@@ -16,7 +16,6 @@
 #include <asm/paging.h>
 #include <asm/p2m.h>
 #include <asm/apic.h>
-#include <asm/hvm/support.h>
 #include <public/sched.h>
 #include <public/hvm/hvm_op.h>
 
index 13bbe8430df5fe8458ce64ffcae9f098dca508ac..6a8316de0e25bc894918da392675076d91ef143b 100644 (file)
@@ -29,7 +29,6 @@
 #include <asm/msr.h>
 #include <asm/hvm/hvm.h>
 #include <asm/hvm/io.h>
-#include <asm/hvm/support.h>
 #include <asm/hvm/vmx/vmx.h>
 #include <asm/hvm/vmx/vmcs.h>
 #include <asm/hvm/vpic.h>
index 7d8bfeb53982b2c8e0440b318536123ab2a6969f..09edbd23b3990dd88994f716145da07778f29cd3 100644 (file)
@@ -33,7 +33,6 @@
 #include <asm/hvm/hvm.h>
 #include <asm/hvm/io.h>
 #include <asm/hvm/nestedhvm.h>
-#include <asm/hvm/support.h>
 #include <asm/hvm/vmx/vmx.h>
 #include <asm/hvm/vmx/vvmx.h>
 #include <asm/hvm/vmx/vmcs.h>
index f8fe8d0c141e0548648c7b20096c3173af7ac0d0..674cdabb073672e371e1546efc9f573087bfe435 100644 (file)
@@ -24,6 +24,7 @@
 #include <asm/types.h>
 #include <asm/mtrr.h>
 #include <asm/p2m.h>
+#include <asm/hvm/support.h>
 #include <asm/hvm/vmx/vmx.h>
 #include <asm/hvm/vmx/vvmx.h>
 #include <asm/hvm/nestedhvm.h>
index b3cafaab8fad9b48777bc5a795605216f7adbca1..17e15720f0a4ef226698d824da9d540242febfad 100644 (file)
@@ -32,7 +32,7 @@
 #include <xen/trace.h>
 #include <asm/hvm/hvm.h>
 #include <asm/hvm/io.h>
-#include <asm/hvm/support.h>
+#include <asm/hvm/save.h>
 
 #define vpic_domain(v) (container_of((v), struct domain, \
                         arch.hvm.vpic[!vpic->is_master]))
index cb1d81bf9e8274f762ee70b04d6aa90b86c544bd..621f5bb88b63850a4f4acbd39c5a66f7fe421568 100644 (file)
@@ -16,8 +16,8 @@
  * this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <xen/sched.h>
 #include <xen/time.h>
-#include <asm/hvm/support.h>
 #include <asm/hvm/vpt.h>
 #include <asm/event.h>
 #include <asm/apic.h>
index 677f571792fe4f6f83cf9ee758fa4899377a16a9..d824f2bb529430e4ab4f2740fd8ed48df83fdcbf 100644 (file)
@@ -11,7 +11,6 @@
 #include <xen/sched.h>
 #include <asm/current.h>
 #include <asm/processor.h>
-#include <asm/hvm/support.h>
 #include <asm/i387.h>
 #include <asm/xstate.h>
 #include <asm/asm_defns.h>
index 96a9f07ca50c3f4200ab72373d5b7c5fa676f6d9..234da4a7f4459b70d9f14d9e8267af3902e49339 100644 (file)
@@ -23,8 +23,8 @@
 #include <asm/regs.h>
 #include <asm/asm_defns.h>
 #include <asm/processor.h>
+#include <asm/p2m.h>
 #include <asm/i387.h>
-#include <asm/hvm/support.h>
 #include <asm/hvm/trace.h>
 #include <asm/hvm/vmx/vmcs.h>
 
index 8be6eaf2422b07390e9f4007670c0af8470c6666..07393befeeed4e9b0230306e60a9167460c511f8 100644 (file)
@@ -15,7 +15,6 @@
  * this program; If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <asm/hvm/support.h>
 #include <asm/hvm/hvm.h>
 #include <asm/p2m.h>
 #include <asm/altp2m.h>
index 23fb3889b7605be62805731218c314819d5027b5..605e47c16cd54480fce0a2b3d5251f327e91eec7 100644 (file)
@@ -25,7 +25,6 @@
 #include <asm/p2m.h>
 #include <asm/mem_sharing.h>
 #include <asm/hap.h>
-#include <asm/hvm/support.h>
 
 #include <asm/hvm/nestedhvm.h>
 
index b19f657c277fbba8cc529211e1e6b8ecb49dee7b..098e8e5d4ca9c00de9e9cc870d2573a1b659e670 100644 (file)
@@ -27,7 +27,6 @@
 #include <asm/p2m.h>
 #include <asm/mem_sharing.h>
 #include <asm/hap.h>
-#include <asm/hvm/support.h>
 
 #include <asm/hvm/nestedhvm.h>
 
index 7bc5853a6c238176f612e35c6cb7d11895695ee1..69fd3fcc86e4e7cb75b44a6df35e6a0562c34340 100644 (file)
@@ -10,6 +10,7 @@
  * @author Graydon Hoare
  */
 
+#include <xen/sched.h>
 #include <xen/types.h>
 #include <asm/msr.h>
 #include <asm/io.h>
@@ -18,7 +19,6 @@
 #include <xen/xenoprof.h>
 #include <asm/regs.h>
 #include <asm/current.h>
-#include <asm/hvm/support.h>
 #include <xen/pci_regs.h>
 #include <xen/pci_ids.h>
 
index b20f26bbe5a30075725eb4f785e604f9bc368a68..247a0deca822c3ae55ba954735cc225d41c44a56 100644 (file)
@@ -12,7 +12,6 @@
 #include <xen/sched.h>
 #include <xen/xenoprof.h>
 #include <public/xenoprof.h>
-#include <asm/hvm/support.h>
 
 #include "op_counter.h"
 
index b42603c351c29a2ea3100b0f7e927ed0acb76cf4..3a331cbdbc1bca1ac9d6e38954314c2bb83d3dd4 100644 (file)
@@ -21,7 +21,6 @@
 #include <asm/flushtlb.h>
 #include <asm/hardirq.h>
 #include <asm/hpet.h>
-#include <asm/hvm/support.h>
 #include <asm/setup.h>
 #include <irq_vectors.h>
 #include <mach_apic.h>
index f82abc2488853ba2c1162ab1bade7d628cec1def..f42a3b843ba747fc4fc910d4b9d8857b839f448c 100644 (file)
@@ -22,7 +22,6 @@
 #include <xen/iocap.h>
 #include <asm/irq.h>
 #include <asm/hvm/hvm.h>
-#include <asm/hvm/support.h>
 #include <asm/processor.h>
 #include <asm/setup.h>
 #include <asm/smp.h>
index f8cb8d9a9482f27cde40288aeeda8e325934a28e..f4d17b4830329dc815a3c59048d8fcea2c915170 100644 (file)
@@ -23,7 +23,6 @@
 #include <asm/page.h>
 #include <asm/shared.h>
 #include <asm/hvm/hvm.h>
-#include <asm/hvm/support.h>
 
 
 static void print_xen_info(void)
index 3b32bdc51cf47ba5bbe05d06ef5ce981e8fb06e6..d481e1db3e7e8752dbedbf158c5767ab9183d4e6 100644 (file)
@@ -10,7 +10,6 @@
 #include <xen/sched.h>
 #include <asm/current.h>
 #include <asm/processor.h>
-#include <asm/hvm/support.h>
 #include <asm/i387.h>
 #include <asm/xstate.h>
 #include <asm/asm_defns.h>
index a16e0e5344119e5911178cc479322f0169a5ac6b..dd09ec22f12d53c1f1a3f1643a7792281eeffc0b 100644 (file)
@@ -22,7 +22,6 @@
 #include <xen/cpu.h>
 #include <xen/irq.h>
 #include <asm/hvm/irq.h>
-#include <asm/hvm/support.h>
 #include <asm/io_apic.h>
 
 /*