Skip to content

Commit a5b7c61

Browse files
committed
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 <[email protected]> Reviewed-by: Randy Dunlap <[email protected]> Acked-by: Ard Biesheuvel <[email protected]>
1 parent 2770ef7 commit a5b7c61

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

arch/ia64/include/asm/mca.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@
1414

1515
#if !defined(__ASSEMBLY__)
1616

17-
#include <linux/interrupt.h>
17+
#include <linux/percpu.h>
18+
#include <linux/threads.h>
1819
#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>
2421

2522
#define IA64_MCA_RENDEZ_TIMEOUT (20 * 1000) /* value in milliseconds - 20 seconds */
2623

arch/ia64/kernel/crash.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/memblock.h>
1616
#include <linux/kexec.h>
1717
#include <linux/elfcore.h>
18+
#include <linux/reboot.h>
1819
#include <linux/sysctl.h>
1920
#include <linux/init.h>
2021
#include <linux/kdebug.h>

arch/ia64/kernel/efi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include <asm/meminit.h>
4040
#include <asm/processor.h>
4141
#include <asm/mca.h>
42+
#include <asm/sal.h>
4243
#include <asm/setup.h>
4344
#include <asm/tlbflush.h>
4445

arch/ia64/kernel/mca.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
#include <asm/ptrace.h>
9797
#include <asm/sal.h>
9898
#include <asm/mca.h>
99+
#include <asm/mca_asm.h>
99100
#include <asm/kexec.h>
100101

101102
#include <asm/irq.h>

0 commit comments

Comments
 (0)