Commit 78ff18a412da24a4b79c6a97000ef5e467e813da
Committed by
Russell King
1 parent
9d4f13e531
Exists in
master
and in
20 other branches
[ARM] Cleanup ARM includes
arch/arm/kernel/entry-armv.S has contained a comment suggesting that asm/hardware.h and asm/arch/irqs.h should be moved into the asm/arch/entry-macro.S include. So move the includes to these two files as required. Add missing includes (asm/hardware.h, asm/io.h) to asm/arch/system.h includes which use those facilities, and remove asm/io.h from kernel/process.c. Remove other unnecessary includes from arch/arm/kernel, arch/arm/mm and arch/arm/mach-footbridge. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Showing 28 changed files with 31 additions and 22 deletions Side-by-side Diff
- arch/arm/kernel/dma.c
- arch/arm/kernel/entry-armv.S
- arch/arm/kernel/process.c
- arch/arm/kernel/setup.c
- arch/arm/kernel/time.c
- arch/arm/kernel/traps.c
- arch/arm/mach-footbridge/dma.c
- arch/arm/mm/consistent.c
- arch/arm/mm/discontig.c
- arch/arm/mm/mm-armv.c
- include/asm-arm/arch-cl7500/entry-macro.S
- include/asm-arm/arch-clps711x/entry-macro.S
- include/asm-arm/arch-clps711x/system.h
- include/asm-arm/arch-ebsa285/entry-macro.S
- include/asm-arm/arch-imx/entry-macro.S
- include/asm-arm/arch-integrator/entry-macro.S
- include/asm-arm/arch-iop3xx/entry-macro.S
- include/asm-arm/arch-ixp2000/entry-macro.S
- include/asm-arm/arch-ixp4xx/entry-macro.S
- include/asm-arm/arch-l7200/system.h
- include/asm-arm/arch-lh7a40x/entry-macro.S
- include/asm-arm/arch-omap/entry-macro.S
- include/asm-arm/arch-pxa/entry-macro.S
- include/asm-arm/arch-realview/entry-macro.S
- include/asm-arm/arch-rpc/entry-macro.S
- include/asm-arm/arch-s3c2410/entry-macro.S
- include/asm-arm/arch-versatile/entry-macro.S
- include/asm-arm/cacheflush.h
arch/arm/kernel/dma.c
arch/arm/kernel/entry-armv.S
... | ... | @@ -18,8 +18,6 @@ |
18 | 18 | #include <asm/memory.h> |
19 | 19 | #include <asm/glue.h> |
20 | 20 | #include <asm/vfpmacros.h> |
21 | -#include <asm/hardware.h> /* should be moved into entry-macro.S */ | |
22 | -#include <asm/arch/irqs.h> /* should be moved into entry-macro.S */ | |
23 | 21 | #include <asm/arch/entry-macro.S> |
24 | 22 | |
25 | 23 | #include "entry-header.S" |
arch/arm/kernel/process.c
... | ... | @@ -28,10 +28,9 @@ |
28 | 28 | #include <linux/init.h> |
29 | 29 | #include <linux/cpu.h> |
30 | 30 | |
31 | -#include <asm/system.h> | |
32 | -#include <asm/io.h> | |
33 | 31 | #include <asm/leds.h> |
34 | 32 | #include <asm/processor.h> |
33 | +#include <asm/system.h> | |
35 | 34 | #include <asm/uaccess.h> |
36 | 35 | #include <asm/mach/time.h> |
37 | 36 |
arch/arm/kernel/setup.c
arch/arm/kernel/time.c
arch/arm/kernel/traps.c
arch/arm/mach-footbridge/dma.c
arch/arm/mm/consistent.c
arch/arm/mm/discontig.c
... | ... | @@ -9,10 +9,8 @@ |
9 | 9 | * it under the terms of the GNU General Public License version 2 as |
10 | 10 | * published by the Free Software Foundation. |
11 | 11 | */ |
12 | - | |
13 | 12 | #include <linux/module.h> |
14 | -#include <linux/mm.h> | |
15 | -#include <linux/init.h> | |
13 | +#include <linux/mmzone.h> | |
16 | 14 | #include <linux/bootmem.h> |
17 | 15 | |
18 | 16 | #if MAX_NUMNODES != 4 && MAX_NUMNODES != 16 |
arch/arm/mm/mm-armv.c
include/asm-arm/arch-cl7500/entry-macro.S
include/asm-arm/arch-clps711x/entry-macro.S
include/asm-arm/arch-clps711x/system.h
include/asm-arm/arch-ebsa285/entry-macro.S
include/asm-arm/arch-imx/entry-macro.S
include/asm-arm/arch-integrator/entry-macro.S
include/asm-arm/arch-iop3xx/entry-macro.S
include/asm-arm/arch-ixp2000/entry-macro.S
include/asm-arm/arch-ixp4xx/entry-macro.S
include/asm-arm/arch-l7200/system.h
include/asm-arm/arch-lh7a40x/entry-macro.S
... | ... | @@ -7,6 +7,8 @@ |
7 | 7 | * License version 2. This program is licensed "as is" without any |
8 | 8 | * warranty of any kind, whether express or implied. |
9 | 9 | */ |
10 | +#include <asm/hardware.h> | |
11 | +#include <asm/arch/irqs.h> | |
10 | 12 | |
11 | 13 | # if defined (CONFIG_ARCH_LH7A400) && defined (CONFIG_ARCH_LH7A404) |
12 | 14 | # error "LH7A400 and LH7A404 are mutually exclusive" |
include/asm-arm/arch-omap/entry-macro.S
include/asm-arm/arch-pxa/entry-macro.S
include/asm-arm/arch-realview/entry-macro.S
include/asm-arm/arch-rpc/entry-macro.S
include/asm-arm/arch-s3c2410/entry-macro.S
include/asm-arm/arch-versatile/entry-macro.S
... | ... | @@ -7,7 +7,9 @@ |
7 | 7 | * License version 2. This program is licensed "as is" without any |
8 | 8 | * warranty of any kind, whether express or implied. |
9 | 9 | */ |
10 | - .macro disable_fiq | |
10 | +#include <asm/hardware.h> | |
11 | + | |
12 | + .macro disable_fiq | |
11 | 13 | .endm |
12 | 14 | |
13 | 15 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp |