diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-04-22 04:58:10 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-05-19 09:47:16 -0400 |
commit | f89e32e0a3df2f29d61fdc120ac62654ef267111 (patch) | |
tree | 0236937fad2be176f7307d1f37826a38eefa9537 /arch/x86/kernel | |
parent | ce4c4c26241f9ab08f14b028d40736f319ed2445 (diff) |
x86/fpu: Fix header file dependencies of fpu-internal.h
Fix a minor header file dependency bug in asm/fpu-internal.h: it
relies on i387.h but does not include it. All users of fpu-internal.h
included it explicitly.
Also remove unnecessary includes, to reduce compilation time.
This also makes it easier to use it as a standalone header file
for FPU internals, such as an upcoming C module in arch/x86/kernel/fpu/.
Reviewed-by: Borislav Petkov <bp@alien8.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/process.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/process_32.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/process_64.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/ptrace.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/signal.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/smpboot.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/traps.c | 1 |
8 files changed, 0 insertions, 8 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index b8035b8dd186..220ad95e0e28 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include <asm/setup.h> | 31 | #include <asm/setup.h> |
32 | #include <asm/apic.h> | 32 | #include <asm/apic.h> |
33 | #include <asm/desc.h> | 33 | #include <asm/desc.h> |
34 | #include <asm/i387.h> | ||
35 | #include <asm/fpu-internal.h> | 34 | #include <asm/fpu-internal.h> |
36 | #include <asm/mtrr.h> | 35 | #include <asm/mtrr.h> |
37 | #include <linux/numa.h> | 36 | #include <linux/numa.h> |
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index c7793addc237..35d0f1925524 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <asm/idle.h> | 25 | #include <asm/idle.h> |
26 | #include <asm/uaccess.h> | 26 | #include <asm/uaccess.h> |
27 | #include <asm/mwait.h> | 27 | #include <asm/mwait.h> |
28 | #include <asm/i387.h> | ||
29 | #include <asm/fpu-internal.h> | 28 | #include <asm/fpu-internal.h> |
30 | #include <asm/debugreg.h> | 29 | #include <asm/debugreg.h> |
31 | #include <asm/nmi.h> | 30 | #include <asm/nmi.h> |
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c index 8ed2106b06da..84d647d4b14d 100644 --- a/arch/x86/kernel/process_32.c +++ b/arch/x86/kernel/process_32.c | |||
@@ -39,7 +39,6 @@ | |||
39 | #include <asm/pgtable.h> | 39 | #include <asm/pgtable.h> |
40 | #include <asm/ldt.h> | 40 | #include <asm/ldt.h> |
41 | #include <asm/processor.h> | 41 | #include <asm/processor.h> |
42 | #include <asm/i387.h> | ||
43 | #include <asm/fpu-internal.h> | 42 | #include <asm/fpu-internal.h> |
44 | #include <asm/desc.h> | 43 | #include <asm/desc.h> |
45 | #ifdef CONFIG_MATH_EMULATION | 44 | #ifdef CONFIG_MATH_EMULATION |
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index ddfdbf74f174..ae6efeccb46e 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c | |||
@@ -38,7 +38,6 @@ | |||
38 | 38 | ||
39 | #include <asm/pgtable.h> | 39 | #include <asm/pgtable.h> |
40 | #include <asm/processor.h> | 40 | #include <asm/processor.h> |
41 | #include <asm/i387.h> | ||
42 | #include <asm/fpu-internal.h> | 41 | #include <asm/fpu-internal.h> |
43 | #include <asm/mmu_context.h> | 42 | #include <asm/mmu_context.h> |
44 | #include <asm/prctl.h> | 43 | #include <asm/prctl.h> |
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c index a7bc79480719..69451b8965f7 100644 --- a/arch/x86/kernel/ptrace.c +++ b/arch/x86/kernel/ptrace.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <asm/uaccess.h> | 28 | #include <asm/uaccess.h> |
29 | #include <asm/pgtable.h> | 29 | #include <asm/pgtable.h> |
30 | #include <asm/processor.h> | 30 | #include <asm/processor.h> |
31 | #include <asm/i387.h> | ||
32 | #include <asm/fpu-internal.h> | 31 | #include <asm/fpu-internal.h> |
33 | #include <asm/debugreg.h> | 32 | #include <asm/debugreg.h> |
34 | #include <asm/ldt.h> | 33 | #include <asm/ldt.h> |
diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c index 1ea14fd53933..35f867aa597e 100644 --- a/arch/x86/kernel/signal.c +++ b/arch/x86/kernel/signal.c | |||
@@ -26,7 +26,6 @@ | |||
26 | 26 | ||
27 | #include <asm/processor.h> | 27 | #include <asm/processor.h> |
28 | #include <asm/ucontext.h> | 28 | #include <asm/ucontext.h> |
29 | #include <asm/i387.h> | ||
30 | #include <asm/fpu-internal.h> | 29 | #include <asm/fpu-internal.h> |
31 | #include <asm/vdso.h> | 30 | #include <asm/vdso.h> |
32 | #include <asm/mce.h> | 31 | #include <asm/mce.h> |
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 50e547eac8cd..60e331ceb844 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -68,7 +68,6 @@ | |||
68 | #include <asm/mwait.h> | 68 | #include <asm/mwait.h> |
69 | #include <asm/apic.h> | 69 | #include <asm/apic.h> |
70 | #include <asm/io_apic.h> | 70 | #include <asm/io_apic.h> |
71 | #include <asm/i387.h> | ||
72 | #include <asm/fpu-internal.h> | 71 | #include <asm/fpu-internal.h> |
73 | #include <asm/setup.h> | 72 | #include <asm/setup.h> |
74 | #include <asm/uv/uv.h> | 73 | #include <asm/uv/uv.h> |
diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index 231aa579d9cd..465b335e7491 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c | |||
@@ -54,7 +54,6 @@ | |||
54 | #include <asm/ftrace.h> | 54 | #include <asm/ftrace.h> |
55 | #include <asm/traps.h> | 55 | #include <asm/traps.h> |
56 | #include <asm/desc.h> | 56 | #include <asm/desc.h> |
57 | #include <asm/i387.h> | ||
58 | #include <asm/fpu-internal.h> | 57 | #include <asm/fpu-internal.h> |
59 | #include <asm/mce.h> | 58 | #include <asm/mce.h> |
60 | #include <asm/fixmap.h> | 59 | #include <asm/fixmap.h> |