]> xenbits.xensource.com Git - xen.git/commitdiff
treewide: Avoid including asm/types.h
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 26 Jun 2023 15:36:36 +0000 (16:36 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 5 Jul 2023 14:20:04 +0000 (15:20 +0100)
We're about to rearrange the common and arch types.h split.  While most
users already include <xen/types.h>, a few do not and some files fail to
compile as a result.

Almost all logic is going to have types very early in the include chain.  Drop
the include entirely from C files, and swap to the common types.h in headers.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
18 files changed:
xen/arch/arm/arm64/lib/find_next_bit.c
xen/arch/x86/cpu/mcheck/mce.h
xen/arch/x86/cpu/vpmu.c
xen/arch/x86/cpu/vpmu_intel.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/vmx/vvmx.c
xen/arch/x86/include/asm/byteorder.h
xen/arch/x86/include/asm/hvm/svm/svmdebug.h
xen/arch/x86/include/asm/hvm/vmx/vmx.h
xen/arch/x86/include/asm/io_apic.h
xen/arch/x86/include/asm/page.h
xen/arch/x86/include/asm/processor.h
xen/arch/x86/include/asm/x86_64/page.h
xen/arch/x86/mm/p2m-ept.c
xen/common/trace.c
xen/drivers/char/arm-uart.c
xen/include/xen/bitops.h
xen/include/xen/spinlock.h

index 8ebf8bfe973ce03bdcc5d465535007e62f933d56..ca6f82277e7700d02ccbb8f200187d96d0dbdd21 100644 (file)
@@ -9,7 +9,7 @@
  * 2 of the License, or (at your option) any later version.
  */
 #include <xen/bitops.h>
-#include <asm/types.h>
+
 #include <asm/byteorder.h>
 
 #ifndef find_next_bit
index bea08bdc7464de58c06d008a54fa6ac23547715c..dd5d258362e684f543ee5c4db02e1fe2fe5e2d01 100644 (file)
@@ -7,7 +7,6 @@
 #include <xen/sched.h>
 #include <xen/smp.h>
 
-#include <asm/types.h>
 #include <asm/traps.h>
 #include <asm/atomic.h>
 
index f31c32bcf3a6b948bb5f90694e921a321c2b37ed..a022126f18fd6c2f2ad8dc53bf508ca7a5d64283 100644 (file)
@@ -14,7 +14,6 @@
 #include <xen/hypercall.h>
 #include <xen/sched.h>
 #include <asm/regs.h>
-#include <asm/types.h>
 #include <asm/msr.h>
 #include <asm/nmi.h>
 #include <asm/p2m.h>
index bda5d511ac1200ce9520e5005f8865856de4e030..fa5b40c65ca3afb6e687f2fc4c8bb90e54680216 100644 (file)
@@ -12,7 +12,6 @@
 #include <xen/xenoprof.h>
 #include <asm/system.h>
 #include <asm/regs.h>
-#include <asm/types.h>
 #include <asm/apic.h>
 #include <asm/traps.h>
 #include <asm/msr.h>
index a67ef79dc003745a20897cf7ca2dfc521b0962dd..57363c2ae124890ac1d1d62b7b33957eb466c2e2 100644 (file)
@@ -38,7 +38,6 @@
 #include <asm/regs.h>
 #include <asm/cpufeature.h>
 #include <asm/processor.h>
-#include <asm/types.h>
 #include <asm/msr.h>
 #include <asm/i387.h>
 #include <asm/xstate.h>
index 1034534c977bb8c11e467a45b06fc0630234d337..16b0ef82b6c8024dbd8615c0d7ae8ac8d65b8c8e 100644 (file)
@@ -10,7 +10,6 @@
 
 #include <xen/ioreq.h>
 
-#include <asm/types.h>
 #include <asm/mtrr.h>
 #include <asm/p2m.h>
 #include <asm/hvm/support.h>
index 1f77e502a528c1c71c8adc142a52327d6dfe0d70..e935f7b2b03bedd5d806fe8345b969393b36fc1c 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __ASM_X86_BYTEORDER_H__
 #define __ASM_X86_BYTEORDER_H__
 
-#include <asm/types.h>
+#include <xen/types.h>
 #include <xen/compiler.h>
 
 static inline __attribute_const__ __u32 ___arch__swab32(__u32 x)
index f1cde676dca190af33d30a87567f9ba9f58642c1..2fb76ec24c76edc73a5d4aaa058bedbab4b99d80 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef __ASM_X86_HVM_SVM_SVMDEBUG_H__
 #define __ASM_X86_HVM_SVM_SVMDEBUG_H__
 
-#include <asm/types.h>
+#include <xen/types.h>
 #include <asm/hvm/svm/vmcb.h>
 
 void svm_sync_vmcb(struct vcpu *v, enum vmcb_sync_state new_state);
index 36c108d8797db722ff2e71b9f79b0f7e7204141f..c84acc221daac6ce338504c12a98d928618fba17 100644 (file)
@@ -8,7 +8,8 @@
 #define __ASM_X86_HVM_VMX_VMX_H__
 
 #include <xen/sched.h>
-#include <asm/types.h>
+#include <xen/types.h>
+
 #include <asm/regs.h>
 #include <asm/asm_defns.h>
 #include <asm/processor.h>
index ef0878b09e2425de5b1b4169835c8f68951a99f9..bd8cb95f46b10e641896bd6a3fa895e00be17d97 100644 (file)
@@ -1,7 +1,8 @@
 #ifndef __ASM_IO_APIC_H
 #define __ASM_IO_APIC_H
 
-#include <asm/types.h>
+#include <xen/types.h>
+
 #include <asm/mpspec.h>
 #include <asm/apicdef.h>
 #include <asm/fixmap.h>
index b585235d064a567082582c8e92a4e8283fd949ca..3647bb1260c2d2316736c1c5bfd1e8627afcd2a8 100644 (file)
@@ -9,7 +9,7 @@
 #define PAGE_ORDER_1G       18
 
 #ifndef __ASSEMBLY__
-# include <asm/types.h>
+# include <xen/types.h>
 # include <xen/lib.h>
 #endif
 
index f983ff501d95fa0ff2f7c66ba6737bc431eaba83..3b3cf51814f8315264558b9c1ad18682356988e2 100644 (file)
@@ -9,7 +9,6 @@
 #include <xen/types.h>
 #include <xen/smp.h>
 #include <xen/percpu.h>
-#include <asm/types.h>
 #include <asm/cpufeature.h>
 #include <asm/desc.h>
 #endif
index 26bdb4b19bb9210cf8c3bb24eb03482ea11dfaf5..53faa7875baf3cb3d2952effdc873aae2c36aabb 100644 (file)
@@ -19,7 +19,7 @@ static inline unsigned long canonicalise_addr(unsigned long addr)
         return addr & ~CANONICAL_MASK;
 }
 
-#include <asm/types.h>
+#include <xen/types.h>
 
 #include <xen/pdx.h>
 
index ffd34a1cc65f5a3865507112d156a94eb759dee9..85c4e8e54f6678e652dd11f9ca56787bbcd46a16 100644 (file)
@@ -11,7 +11,6 @@
 #include <asm/current.h>
 #include <asm/iocap.h>
 #include <asm/paging.h>
-#include <asm/types.h>
 #include <asm/domain.h>
 #include <asm/p2m.h>
 #include <asm/hvm/vmx/vmx.h>
index df4a719e4b43dfb3414972db1d5f6fe3de833b46..17d62f70561ffd6635d67f1f80546c3dd1af45f8 100644 (file)
@@ -16,7 +16,6 @@
  * it's possible to reconstruct a chronological record of trace events.
  */
 
-#include <asm/types.h>
 #include <asm/io.h>
 #include <xen/lib.h>
 #include <xen/param.h>
index eeb9ceefc06a067849c565fb1af72ab3275cc6a0..8098a968c285a49cf05e8e00494b32ff8e09042e 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #include <asm/device.h>
-#include <asm/types.h>
+
 #include <xen/console.h>
 #include <xen/device_tree.h>
 #include <xen/param.h>
index 33619a0873fe308416c0db60e047c7fec85baac8..4cd0310789b51195617fb2453e53763d824be678 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef _LINUX_BITOPS_H
 #define _LINUX_BITOPS_H
-#include <asm/types.h>
+#include <xen/types.h>
 
 /*
  * Create a contiguous bitmask starting at bit position @l and ending at
index ca40c71c88f9c4cd6aeaa28712afafee1e15ea37..0a02a527dc59cf59ad07a84227fcb25d3ca2cd2a 100644 (file)
@@ -2,9 +2,10 @@
 #define __SPINLOCK_H__
 
 #include <xen/time.h>
+#include <xen/types.h>
+
 #include <asm/system.h>
 #include <asm/spinlock.h>
-#include <asm/types.h>
 
 #define SPINLOCK_CPU_BITS  12