diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-11 08:08:12 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-11 08:08:12 -0400 |
commit | fd582ec88eb8d2d907876603e4ecebe6eab330d9 (patch) | |
tree | bafacc1916098001051b8235722daa6b9b52e63a /arch/ppc/syslib | |
parent | 35d81a4bfe28a6ea81c9f67c9ce40543124ded0b (diff) |
ppc: Various minor compile fixes
This fixes up a variety of minor problems in compiling with ARCH=ppc
arising from using the merged versions of various header files.
A lot of the changes are just adding #include <asm/machdep.h> to
files that use ppc_md or smp_ops_t.
This also arranges for us to use semaphore.c, vecemu.c, vector.S and
fpu.S from arch/powerpc/kernel when compiling with ARCH=ppc.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/syslib')
-rw-r--r-- | arch/ppc/syslib/gt64260_pic.c | 1 | ||||
-rw-r--r-- | arch/ppc/syslib/mpc52xx_pci.c | 1 | ||||
-rw-r--r-- | arch/ppc/syslib/mpc83xx_devices.c | 1 | ||||
-rw-r--r-- | arch/ppc/syslib/mv64360_pic.c | 1 | ||||
-rw-r--r-- | arch/ppc/syslib/mv64x60_dbg.c | 1 | ||||
-rw-r--r-- | arch/ppc/syslib/open_pic.c | 1 | ||||
-rw-r--r-- | arch/ppc/syslib/open_pic2.c | 1 | ||||
-rw-r--r-- | arch/ppc/syslib/ppc403_pic.c | 1 | ||||
-rw-r--r-- | arch/ppc/syslib/ppc4xx_pic.c | 1 | ||||
-rw-r--r-- | arch/ppc/syslib/ppc83xx_setup.c | 1 | ||||
-rw-r--r-- | arch/ppc/syslib/ppc85xx_setup.c | 1 | ||||
-rw-r--r-- | arch/ppc/syslib/pq2_devices.c | 1 | ||||
-rw-r--r-- | arch/ppc/syslib/xilinx_pic.c | 1 |
13 files changed, 13 insertions, 0 deletions
diff --git a/arch/ppc/syslib/gt64260_pic.c b/arch/ppc/syslib/gt64260_pic.c index 44aa87385451..f97b3a9abd1e 100644 --- a/arch/ppc/syslib/gt64260_pic.c +++ b/arch/ppc/syslib/gt64260_pic.c | |||
@@ -45,6 +45,7 @@ | |||
45 | #include <asm/system.h> | 45 | #include <asm/system.h> |
46 | #include <asm/irq.h> | 46 | #include <asm/irq.h> |
47 | #include <asm/mv64x60.h> | 47 | #include <asm/mv64x60.h> |
48 | #include <asm/machdep.h> | ||
48 | 49 | ||
49 | #define CPU_INTR_STR "gt64260 cpu interface error" | 50 | #define CPU_INTR_STR "gt64260 cpu interface error" |
50 | #define PCI0_INTR_STR "gt64260 pci 0 error" | 51 | #define PCI0_INTR_STR "gt64260 pci 0 error" |
diff --git a/arch/ppc/syslib/mpc52xx_pci.c b/arch/ppc/syslib/mpc52xx_pci.c index 59cf3e8bd1a0..02edff8befd0 100644 --- a/arch/ppc/syslib/mpc52xx_pci.c +++ b/arch/ppc/syslib/mpc52xx_pci.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include "mpc52xx_pci.h" | 21 | #include "mpc52xx_pci.h" |
22 | 22 | ||
23 | #include <asm/delay.h> | 23 | #include <asm/delay.h> |
24 | #include <asm/machdep.h> | ||
24 | 25 | ||
25 | 26 | ||
26 | static int | 27 | static int |
diff --git a/arch/ppc/syslib/mpc83xx_devices.c b/arch/ppc/syslib/mpc83xx_devices.c index 95b3b8a7f0ba..dbf8acac507f 100644 --- a/arch/ppc/syslib/mpc83xx_devices.c +++ b/arch/ppc/syslib/mpc83xx_devices.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <asm/mpc83xx.h> | 21 | #include <asm/mpc83xx.h> |
22 | #include <asm/irq.h> | 22 | #include <asm/irq.h> |
23 | #include <asm/ppc_sys.h> | 23 | #include <asm/ppc_sys.h> |
24 | #include <asm/machdep.h> | ||
24 | 25 | ||
25 | /* We use offsets for IORESOURCE_MEM since we do not know at compile time | 26 | /* We use offsets for IORESOURCE_MEM since we do not know at compile time |
26 | * what IMMRBAR is, will get fixed up by mach_mpc83xx_fixup | 27 | * what IMMRBAR is, will get fixed up by mach_mpc83xx_fixup |
diff --git a/arch/ppc/syslib/mv64360_pic.c b/arch/ppc/syslib/mv64360_pic.c index 8356da4678a2..58b0aa813e85 100644 --- a/arch/ppc/syslib/mv64360_pic.c +++ b/arch/ppc/syslib/mv64360_pic.c | |||
@@ -48,6 +48,7 @@ | |||
48 | #include <asm/system.h> | 48 | #include <asm/system.h> |
49 | #include <asm/irq.h> | 49 | #include <asm/irq.h> |
50 | #include <asm/mv64x60.h> | 50 | #include <asm/mv64x60.h> |
51 | #include <asm/machdep.h> | ||
51 | 52 | ||
52 | #ifdef CONFIG_IRQ_ALL_CPUS | 53 | #ifdef CONFIG_IRQ_ALL_CPUS |
53 | #error "The mv64360 does not support distribution of IRQs on all CPUs" | 54 | #error "The mv64360 does not support distribution of IRQs on all CPUs" |
diff --git a/arch/ppc/syslib/mv64x60_dbg.c b/arch/ppc/syslib/mv64x60_dbg.c index 2927c7adf5e5..fa5b2e45e0ca 100644 --- a/arch/ppc/syslib/mv64x60_dbg.c +++ b/arch/ppc/syslib/mv64x60_dbg.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/irq.h> | 24 | #include <linux/irq.h> |
25 | #include <asm/delay.h> | 25 | #include <asm/delay.h> |
26 | #include <asm/mv64x60.h> | 26 | #include <asm/mv64x60.h> |
27 | #include <asm/machdep.h> | ||
27 | 28 | ||
28 | 29 | ||
29 | #if defined(CONFIG_SERIAL_TEXT_DEBUG) | 30 | #if defined(CONFIG_SERIAL_TEXT_DEBUG) |
diff --git a/arch/ppc/syslib/open_pic.c b/arch/ppc/syslib/open_pic.c index 53da58523e39..df0f76dc0ce3 100644 --- a/arch/ppc/syslib/open_pic.c +++ b/arch/ppc/syslib/open_pic.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <asm/sections.h> | 24 | #include <asm/sections.h> |
25 | #include <asm/open_pic.h> | 25 | #include <asm/open_pic.h> |
26 | #include <asm/i8259.h> | 26 | #include <asm/i8259.h> |
27 | #include <asm/machdep.h> | ||
27 | 28 | ||
28 | #include "open_pic_defs.h" | 29 | #include "open_pic_defs.h" |
29 | 30 | ||
diff --git a/arch/ppc/syslib/open_pic2.c b/arch/ppc/syslib/open_pic2.c index 9a7e8748e2b2..ef365cc04bd9 100644 --- a/arch/ppc/syslib/open_pic2.c +++ b/arch/ppc/syslib/open_pic2.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <asm/sections.h> | 28 | #include <asm/sections.h> |
29 | #include <asm/open_pic.h> | 29 | #include <asm/open_pic.h> |
30 | #include <asm/i8259.h> | 30 | #include <asm/i8259.h> |
31 | #include <asm/machdep.h> | ||
31 | 32 | ||
32 | #include "open_pic_defs.h" | 33 | #include "open_pic_defs.h" |
33 | 34 | ||
diff --git a/arch/ppc/syslib/ppc403_pic.c b/arch/ppc/syslib/ppc403_pic.c index ce4d1deb86e9..c46043c47225 100644 --- a/arch/ppc/syslib/ppc403_pic.c +++ b/arch/ppc/syslib/ppc403_pic.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <asm/system.h> | 26 | #include <asm/system.h> |
27 | #include <asm/irq.h> | 27 | #include <asm/irq.h> |
28 | #include <asm/ppc4xx_pic.h> | 28 | #include <asm/ppc4xx_pic.h> |
29 | #include <asm/machdep.h> | ||
29 | 30 | ||
30 | /* Function Prototypes */ | 31 | /* Function Prototypes */ |
31 | 32 | ||
diff --git a/arch/ppc/syslib/ppc4xx_pic.c b/arch/ppc/syslib/ppc4xx_pic.c index 40086212b9c3..0b435633a0d1 100644 --- a/arch/ppc/syslib/ppc4xx_pic.c +++ b/arch/ppc/syslib/ppc4xx_pic.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <asm/system.h> | 25 | #include <asm/system.h> |
26 | #include <asm/irq.h> | 26 | #include <asm/irq.h> |
27 | #include <asm/ppc4xx_pic.h> | 27 | #include <asm/ppc4xx_pic.h> |
28 | #include <asm/machdep.h> | ||
28 | 29 | ||
29 | /* See comment in include/arch-ppc/ppc4xx_pic.h | 30 | /* See comment in include/arch-ppc/ppc4xx_pic.h |
30 | * for more info about these two variables | 31 | * for more info about these two variables |
diff --git a/arch/ppc/syslib/ppc83xx_setup.c b/arch/ppc/syslib/ppc83xx_setup.c index 890484e576e7..4da168a6ad03 100644 --- a/arch/ppc/syslib/ppc83xx_setup.c +++ b/arch/ppc/syslib/ppc83xx_setup.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <asm/ppc_sys.h> | 40 | #include <asm/ppc_sys.h> |
41 | #include <asm/kgdb.h> | 41 | #include <asm/kgdb.h> |
42 | #include <asm/delay.h> | 42 | #include <asm/delay.h> |
43 | #include <asm/machdep.h> | ||
43 | 44 | ||
44 | #include <syslib/ppc83xx_setup.h> | 45 | #include <syslib/ppc83xx_setup.h> |
45 | #if defined(CONFIG_PCI) | 46 | #if defined(CONFIG_PCI) |
diff --git a/arch/ppc/syslib/ppc85xx_setup.c b/arch/ppc/syslib/ppc85xx_setup.c index 832b8bf99ae7..de2f90576577 100644 --- a/arch/ppc/syslib/ppc85xx_setup.c +++ b/arch/ppc/syslib/ppc85xx_setup.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <asm/mmu.h> | 29 | #include <asm/mmu.h> |
30 | #include <asm/ppc_sys.h> | 30 | #include <asm/ppc_sys.h> |
31 | #include <asm/kgdb.h> | 31 | #include <asm/kgdb.h> |
32 | #include <asm/machdep.h> | ||
32 | 33 | ||
33 | #include <syslib/ppc85xx_setup.h> | 34 | #include <syslib/ppc85xx_setup.h> |
34 | 35 | ||
diff --git a/arch/ppc/syslib/pq2_devices.c b/arch/ppc/syslib/pq2_devices.c index 1d3869768f96..6f88ba93412b 100644 --- a/arch/ppc/syslib/pq2_devices.c +++ b/arch/ppc/syslib/pq2_devices.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <asm/cpm2.h> | 18 | #include <asm/cpm2.h> |
19 | #include <asm/irq.h> | 19 | #include <asm/irq.h> |
20 | #include <asm/ppc_sys.h> | 20 | #include <asm/ppc_sys.h> |
21 | #include <asm/machdep.h> | ||
21 | 22 | ||
22 | struct platform_device ppc_sys_platform_devices[] = { | 23 | struct platform_device ppc_sys_platform_devices[] = { |
23 | [MPC82xx_CPM_FCC1] = { | 24 | [MPC82xx_CPM_FCC1] = { |
diff --git a/arch/ppc/syslib/xilinx_pic.c b/arch/ppc/syslib/xilinx_pic.c index 2cbcad278cef..47f04c71fe9c 100644 --- a/arch/ppc/syslib/xilinx_pic.c +++ b/arch/ppc/syslib/xilinx_pic.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <asm/io.h> | 17 | #include <asm/io.h> |
18 | #include <asm/xparameters.h> | 18 | #include <asm/xparameters.h> |
19 | #include <asm/ibm4xx.h> | 19 | #include <asm/ibm4xx.h> |
20 | #include <asm/machdep.h> | ||
20 | 21 | ||
21 | /* No one else should require these constants, so define them locally here. */ | 22 | /* No one else should require these constants, so define them locally here. */ |
22 | #define ISR 0 /* Interrupt Status Register */ | 23 | #define ISR 0 /* Interrupt Status Register */ |