diff options
author | Vegard Nossum <vegard.nossum@gmail.com> | 2008-05-28 03:46:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-02 06:48:23 -0400 |
commit | 6330a30a76c1e62d4b4ec238368957f8febf9113 (patch) | |
tree | 4d7d5ec2cee6ad27c914ced59a624a1bc2f5601d | |
parent | 83bea8e1fa0c47b30664b6f92397c016c22f77fb (diff) |
x86: break mutual header inclusion
This breaks up the mutual inclusion between headers ptrace.h and vm86.h
by moving some small part of vm86.h which is needed by ptrace.h into
processor-flags.h.
We also try to move #include lines to the top.
This has been compile tested on x86_32 and x86_64 defconfig, and run
through 'make headers_check'.
Cc: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | include/asm-x86/processor-flags.h | 6 | ||||
-rw-r--r-- | include/asm-x86/ptrace.h | 8 | ||||
-rw-r--r-- | include/asm-x86/vm86.h | 8 |
3 files changed, 12 insertions, 10 deletions
diff --git a/include/asm-x86/processor-flags.h b/include/asm-x86/processor-flags.h index 199cab107d85..092b39b3a7e6 100644 --- a/include/asm-x86/processor-flags.h +++ b/include/asm-x86/processor-flags.h | |||
@@ -88,4 +88,10 @@ | |||
88 | #define CX86_ARR_BASE 0xc4 | 88 | #define CX86_ARR_BASE 0xc4 |
89 | #define CX86_RCR_BASE 0xdc | 89 | #define CX86_RCR_BASE 0xdc |
90 | 90 | ||
91 | #ifdef CONFIG_VM86 | ||
92 | #define X86_VM_MASK X86_EFLAGS_VM | ||
93 | #else | ||
94 | #define X86_VM_MASK 0 /* No VM86 support */ | ||
95 | #endif | ||
96 | |||
91 | #endif /* __ASM_I386_PROCESSOR_FLAGS_H */ | 97 | #endif /* __ASM_I386_PROCESSOR_FLAGS_H */ |
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h index 9f922b0b95d6..8a71db803da6 100644 --- a/include/asm-x86/ptrace.h +++ b/include/asm-x86/ptrace.h | |||
@@ -3,7 +3,12 @@ | |||
3 | 3 | ||
4 | #include <linux/compiler.h> /* For __user */ | 4 | #include <linux/compiler.h> /* For __user */ |
5 | #include <asm/ptrace-abi.h> | 5 | #include <asm/ptrace-abi.h> |
6 | #include <asm/processor-flags.h> | ||
6 | 7 | ||
8 | #ifdef __KERNEL__ | ||
9 | #include <asm/ds.h> /* the DS BTS struct is used for ptrace too */ | ||
10 | #include <asm/segment.h> | ||
11 | #endif | ||
7 | 12 | ||
8 | #ifndef __ASSEMBLY__ | 13 | #ifndef __ASSEMBLY__ |
9 | 14 | ||
@@ -55,9 +60,6 @@ struct pt_regs { | |||
55 | unsigned long ss; | 60 | unsigned long ss; |
56 | }; | 61 | }; |
57 | 62 | ||
58 | #include <asm/vm86.h> | ||
59 | #include <asm/segment.h> | ||
60 | |||
61 | #endif /* __KERNEL__ */ | 63 | #endif /* __KERNEL__ */ |
62 | 64 | ||
63 | #else /* __i386__ */ | 65 | #else /* __i386__ */ |
diff --git a/include/asm-x86/vm86.h b/include/asm-x86/vm86.h index cbf4a0effa75..5ce351325e01 100644 --- a/include/asm-x86/vm86.h +++ b/include/asm-x86/vm86.h | |||
@@ -115,7 +115,6 @@ struct vm86plus_info_struct { | |||
115 | unsigned long is_vm86pus:1; /* for vm86 internal use */ | 115 | unsigned long is_vm86pus:1; /* for vm86 internal use */ |
116 | unsigned char vm86dbg_intxxtab[32]; /* for debugger */ | 116 | unsigned char vm86dbg_intxxtab[32]; /* for debugger */ |
117 | }; | 117 | }; |
118 | |||
119 | struct vm86plus_struct { | 118 | struct vm86plus_struct { |
120 | struct vm86_regs regs; | 119 | struct vm86_regs regs; |
121 | unsigned long flags; | 120 | unsigned long flags; |
@@ -128,11 +127,7 @@ struct vm86plus_struct { | |||
128 | 127 | ||
129 | #ifdef __KERNEL__ | 128 | #ifdef __KERNEL__ |
130 | 129 | ||
131 | #ifdef CONFIG_VM86 | 130 | #include <asm/ptrace.h> |
132 | #define X86_VM_MASK X86_EFLAGS_VM | ||
133 | #else | ||
134 | #define X86_VM_MASK 0 /* No VM86 support */ | ||
135 | #endif | ||
136 | 131 | ||
137 | /* | 132 | /* |
138 | * This is the (kernel) stack-layout when we have done a "SAVE_ALL" from vm86 | 133 | * This is the (kernel) stack-layout when we have done a "SAVE_ALL" from vm86 |
@@ -142,7 +137,6 @@ struct vm86plus_struct { | |||
142 | * at the end of the structure. Look at ptrace.h to see the "normal" | 137 | * at the end of the structure. Look at ptrace.h to see the "normal" |
143 | * setup. For user space layout see 'struct vm86_regs' above. | 138 | * setup. For user space layout see 'struct vm86_regs' above. |
144 | */ | 139 | */ |
145 | #include <asm/ptrace.h> | ||
146 | 140 | ||
147 | struct kernel_vm86_regs { | 141 | struct kernel_vm86_regs { |
148 | /* | 142 | /* |