x86/fpu: Fix header file dependencies of fpu-internal.h
authorIngo Molnar <mingo@kernel.org>
Wed, 22 Apr 2015 08:58:10 +0000 (10:58 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:16 +0000 (15:47 +0200)
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>
14 files changed:
arch/x86/crypto/crc32c-intel_glue.c
arch/x86/crypto/sha-mb/sha1_mb.c
arch/x86/ia32/ia32_signal.c
arch/x86/include/asm/fpu-internal.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/process.c
arch/x86/kernel/process_32.c
arch/x86/kernel/process_64.c
arch/x86/kernel/ptrace.c
arch/x86/kernel/signal.c
arch/x86/kernel/smpboot.c
arch/x86/kernel/traps.c
arch/x86/kvm/x86.c
arch/x86/mm/mpx.c

index 28640c3d6af7f6172a8fe39d4553c98019614e24..470522cb042a85b98d6acab7908f0797d4108220 100644 (file)
@@ -32,7 +32,6 @@
 
 #include <asm/cpufeature.h>
 #include <asm/cpu_device_id.h>
-#include <asm/i387.h>
 #include <asm/fpu-internal.h>
 
 #define CHKSUM_BLOCK_SIZE      1
index e510b1c5d690a5115231c608a51b6d4a37932d76..15373786494fa8b0070c856903c97d585eba83cd 100644 (file)
@@ -65,7 +65,6 @@
 #include <crypto/mcryptd.h>
 #include <crypto/crypto_wq.h>
 #include <asm/byteorder.h>
-#include <asm/i387.h>
 #include <asm/xcr.h>
 #include <asm/xsave.h>
 #include <linux/hardirq.h>
index c81d35e6c7f1d91c22734793c006c0f5f33c0c10..4bafd5b05aca071466c9456adac1a1fbb8cd732d 100644 (file)
@@ -21,7 +21,6 @@
 #include <linux/binfmts.h>
 #include <asm/ucontext.h>
 #include <asm/uaccess.h>
-#include <asm/i387.h>
 #include <asm/fpu-internal.h>
 #include <asm/ptrace.h>
 #include <asm/ia32_unistd.h>
index f85d21b689015151f06c9e7ff18f2d254439ac5f..c3b7bd12f18fcc78b50ebe1405e054c234ec8d51 100644 (file)
 #ifndef _FPU_INTERNAL_H
 #define _FPU_INTERNAL_H
 
-#include <linux/kernel_stat.h>
 #include <linux/regset.h>
 #include <linux/compat.h>
 #include <linux/slab.h>
-#include <asm/asm.h>
-#include <asm/cpufeature.h>
-#include <asm/processor.h>
-#include <asm/sigcontext.h>
+
 #include <asm/user.h>
-#include <asm/uaccess.h>
+#include <asm/i387.h>
 #include <asm/xsave.h>
-#include <asm/smap.h>
 
 #ifdef CONFIG_X86_64
 # include <asm/sigcontext32.h>
index b8035b8dd1866cb8e944029d15a47da6eb0ec14e..220ad95e0e289c452c6d785fbfb58bb9e4a9f979 100644 (file)
@@ -31,7 +31,6 @@
 #include <asm/setup.h>
 #include <asm/apic.h>
 #include <asm/desc.h>
-#include <asm/i387.h>
 #include <asm/fpu-internal.h>
 #include <asm/mtrr.h>
 #include <linux/numa.h>
index c7793addc237f3cb6cb1247d51164bf7f65df35e..35d0f19255242679e71d9d7e0e037beb93f54654 100644 (file)
@@ -25,7 +25,6 @@
 #include <asm/idle.h>
 #include <asm/uaccess.h>
 #include <asm/mwait.h>
-#include <asm/i387.h>
 #include <asm/fpu-internal.h>
 #include <asm/debugreg.h>
 #include <asm/nmi.h>
index 8ed2106b06da63e0a8e0dcf561aad7a1fc112e40..84d647d4b14d16db388fd20fcda497412b3a328b 100644 (file)
@@ -39,7 +39,6 @@
 #include <asm/pgtable.h>
 #include <asm/ldt.h>
 #include <asm/processor.h>
-#include <asm/i387.h>
 #include <asm/fpu-internal.h>
 #include <asm/desc.h>
 #ifdef CONFIG_MATH_EMULATION
index ddfdbf74f1744c235fb80ee2ee0718152882b2ce..ae6efeccb46e7d537e3249beeed4f1c051a8be60 100644 (file)
@@ -38,7 +38,6 @@
 
 #include <asm/pgtable.h>
 #include <asm/processor.h>
-#include <asm/i387.h>
 #include <asm/fpu-internal.h>
 #include <asm/mmu_context.h>
 #include <asm/prctl.h>
index a7bc794807195af79b6c15054b1941867d373198..69451b8965f7b8cd348326731907de6fc381e931 100644 (file)
@@ -28,7 +28,6 @@
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
 #include <asm/processor.h>
-#include <asm/i387.h>
 #include <asm/fpu-internal.h>
 #include <asm/debugreg.h>
 #include <asm/ldt.h>
index 1ea14fd53933bae96dc5f8e3fec99575a3c3c454..35f867aa597e0da364268bd80b7638de9f6e5d1a 100644 (file)
@@ -26,7 +26,6 @@
 
 #include <asm/processor.h>
 #include <asm/ucontext.h>
-#include <asm/i387.h>
 #include <asm/fpu-internal.h>
 #include <asm/vdso.h>
 #include <asm/mce.h>
index 50e547eac8cd4b64e9e6892410366ec3a64a7a13..60e331ceb844c34aa7db6d2dc6018985b1f7fd99 100644 (file)
@@ -68,7 +68,6 @@
 #include <asm/mwait.h>
 #include <asm/apic.h>
 #include <asm/io_apic.h>
-#include <asm/i387.h>
 #include <asm/fpu-internal.h>
 #include <asm/setup.h>
 #include <asm/uv/uv.h>
index 231aa579d9cd5df58cd2fdd19155884efd909c5e..465b335e749104e89b0b56492ff5bebf1567ac47 100644 (file)
@@ -54,7 +54,6 @@
 #include <asm/ftrace.h>
 #include <asm/traps.h>
 #include <asm/desc.h>
-#include <asm/i387.h>
 #include <asm/fpu-internal.h>
 #include <asm/mce.h>
 #include <asm/fixmap.h>
index 26b1f89fc60854db9008a10daf2e6d33115b1c3a..be276e0fe0ff3b7531427da8ccfb042c688f965c 100644 (file)
@@ -59,7 +59,7 @@
 #include <asm/desc.h>
 #include <asm/mtrr.h>
 #include <asm/mce.h>
-#include <asm/i387.h>
+#include <linux/kernel_stat.h>
 #include <asm/fpu-internal.h> /* Ugh! */
 #include <asm/xcr.h>
 #include <asm/pvclock.h>
index c439ec47821601c5b594bc1eec5abc529c5fd012..37ad432e7f160a310a9cff3ab2b274c230220021 100644 (file)
@@ -10,7 +10,6 @@
 #include <linux/syscalls.h>
 #include <linux/sched/sysctl.h>
 
-#include <asm/i387.h>
 #include <asm/insn.h>
 #include <asm/mman.h>
 #include <asm/mmu_context.h>