Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ia64: remove unneeded header includes from <asm/mca.h>

<asm/mca.h> includes too many unneeded headers.

This commit cuts off a lot of header includes.

What we need to include are:

- <linux/percpu.h> for DECLARE_PER_CPU(u64, ia64_mca_pal_base)
- <linux/threads.h> for NR_CPUS
- <linux/types.h> for u8, u64, size_t, etc.
- <asm/ptrace.h> for KERNEL_STACK_SIZE

The other header includes are actually unneeded.

<asm/mca.h> previously included 436 headers, and now it includes
only 138. I confirmed <asm/mca.h> is still self-contained.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>

+6 -6
+3 -6
arch/ia64/include/asm/mca.h
··· 14 14 15 15 #if !defined(__ASSEMBLY__) 16 16 17 - #include <linux/interrupt.h> 17 + #include <linux/percpu.h> 18 + #include <linux/threads.h> 18 19 #include <linux/types.h> 19 - 20 - #include <asm/param.h> 21 - #include <asm/sal.h> 22 - #include <asm/processor.h> 23 - #include <asm/mca_asm.h> 20 + #include <asm/ptrace.h> 24 21 25 22 #define IA64_MCA_RENDEZ_TIMEOUT (20 * 1000) /* value in milliseconds - 20 seconds */ 26 23
+1
arch/ia64/kernel/crash.c
··· 15 15 #include <linux/memblock.h> 16 16 #include <linux/kexec.h> 17 17 #include <linux/elfcore.h> 18 + #include <linux/reboot.h> 18 19 #include <linux/sysctl.h> 19 20 #include <linux/init.h> 20 21 #include <linux/kdebug.h>
+1
arch/ia64/kernel/efi.c
··· 39 39 #include <asm/meminit.h> 40 40 #include <asm/processor.h> 41 41 #include <asm/mca.h> 42 + #include <asm/sal.h> 42 43 #include <asm/setup.h> 43 44 #include <asm/tlbflush.h> 44 45
+1
arch/ia64/kernel/mca.c
··· 96 96 #include <asm/ptrace.h> 97 97 #include <asm/sal.h> 98 98 #include <asm/mca.h> 99 + #include <asm/mca_asm.h> 99 100 #include <asm/kexec.h> 100 101 101 102 #include <asm/irq.h>