treewide: Avoid including asm/types.h

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>
This commit is contained in:
Andrew Cooper committed 2023-07-05 15:20:04 +01:00
1 parent b2e688730a
commit fe9e78dbd3
18 files changed
+13 -18

No files matched your search

+1 -1
View 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
-1
View 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>
-1
View 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>
-1
View 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>
-1
View 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>
-1
View 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>
+1 -1
View 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)
+1 -1
View 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);
+2 -1
View 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>
+2 -1
View 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>
+1 -1
View 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
-1
View 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
+1 -1
View 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>
-1
View 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>
-1
View 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>
+1 -1
View 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>
+1 -1
View 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
+2 -1
View 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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.