diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-10-03 00:14:04 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-10-03 00:14:04 -0400 |
commit | 711fa8096863e4b50bb97f9ebc44606dc2182ac3 (patch) | |
tree | 6d0a3a76a0945db8f61957d5b7542a18ab7fc0db /arch | |
parent | 059fbd6a5ee9a35ac9f15edb2876a50bd88a008d (diff) |
sh: build fixes for defconfigs.
Get all of the defconfigs building again.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/boards/landisk/irq.c | 2 | ||||
-rw-r--r-- | arch/sh/boards/renesas/r7780rp/irq.c | 2 | ||||
-rw-r--r-- | arch/sh/boards/renesas/systemh/setup.c | 2 | ||||
-rw-r--r-- | arch/sh/boards/se/7343/irq.c | 2 | ||||
-rw-r--r-- | arch/sh/boards/se/770x/setup.c | 7 | ||||
-rw-r--r-- | arch/sh/boards/se/7751/setup.c | 6 | ||||
-rw-r--r-- | arch/sh/boards/sh03/setup.c | 1 | ||||
-rw-r--r-- | arch/sh/drivers/dma/dma-sysfs.c | 8 | ||||
-rw-r--r-- | arch/sh/drivers/pci/ops-sh03.c | 4 | ||||
-rw-r--r-- | arch/sh/kernel/entry.S | 6 | ||||
-rw-r--r-- | arch/sh/kernel/setup.c | 4 | ||||
-rw-r--r-- | arch/sh/kernel/sh_ksyms.c | 1 | ||||
-rw-r--r-- | arch/sh/mm/cache-debugfs.c | 2 |
13 files changed, 19 insertions, 28 deletions
diff --git a/arch/sh/boards/landisk/irq.c b/arch/sh/boards/landisk/irq.c index a006d6443225..5891fcd80405 100644 --- a/arch/sh/boards/landisk/irq.c +++ b/arch/sh/boards/landisk/irq.c | |||
@@ -83,7 +83,7 @@ static struct hw_interrupt_type landisk_irq_type = { | |||
83 | static void make_landisk_irq(unsigned int irq) | 83 | static void make_landisk_irq(unsigned int irq) |
84 | { | 84 | { |
85 | disable_irq_nosync(irq); | 85 | disable_irq_nosync(irq); |
86 | irq_desc[irq].handler = &landisk_irq_type; | 86 | irq_desc[irq].chip = &landisk_irq_type; |
87 | disable_landisk_irq(irq); | 87 | disable_landisk_irq(irq); |
88 | } | 88 | } |
89 | 89 | ||
diff --git a/arch/sh/boards/renesas/r7780rp/irq.c b/arch/sh/boards/renesas/r7780rp/irq.c index 61d5e5d3c294..769ae6b65123 100644 --- a/arch/sh/boards/renesas/r7780rp/irq.c +++ b/arch/sh/boards/renesas/r7780rp/irq.c | |||
@@ -83,7 +83,7 @@ static struct hw_interrupt_type r7780rp_irq_type = { | |||
83 | static void make_r7780rp_irq(unsigned int irq) | 83 | static void make_r7780rp_irq(unsigned int irq) |
84 | { | 84 | { |
85 | disable_irq_nosync(irq); | 85 | disable_irq_nosync(irq); |
86 | irq_desc[irq].handler = &r7780rp_irq_type; | 86 | irq_desc[irq].chip = &r7780rp_irq_type; |
87 | disable_r7780rp_irq(irq); | 87 | disable_r7780rp_irq(irq); |
88 | } | 88 | } |
89 | 89 | ||
diff --git a/arch/sh/boards/renesas/systemh/setup.c b/arch/sh/boards/renesas/systemh/setup.c index a8467bf90c25..bab7d3cdc87b 100644 --- a/arch/sh/boards/renesas/systemh/setup.c +++ b/arch/sh/boards/renesas/systemh/setup.c | |||
@@ -53,6 +53,6 @@ struct sh_machine_vector mv_7751systemh __initmv = { | |||
53 | .mv_outsw = sh7751systemh_outsw, | 53 | .mv_outsw = sh7751systemh_outsw, |
54 | .mv_outsl = sh7751systemh_outsl, | 54 | .mv_outsl = sh7751systemh_outsl, |
55 | 55 | ||
56 | .mv_init_irq = sh7751system_init_irq, | 56 | .mv_init_irq = sh7751systemh_init_irq, |
57 | }; | 57 | }; |
58 | ALIAS_MV(7751systemh) | 58 | ALIAS_MV(7751systemh) |
diff --git a/arch/sh/boards/se/7343/irq.c b/arch/sh/boards/se/7343/irq.c index b41e3d4ea37c..739a7b001bb7 100644 --- a/arch/sh/boards/se/7343/irq.c +++ b/arch/sh/boards/se/7343/irq.c | |||
@@ -73,7 +73,7 @@ static void | |||
73 | make_intreq_irq(unsigned int irq) | 73 | make_intreq_irq(unsigned int irq) |
74 | { | 74 | { |
75 | disable_irq_nosync(irq); | 75 | disable_irq_nosync(irq); |
76 | irq_desc[irq].handler = &intreq_irq_type; | 76 | irq_desc[irq].chip = &intreq_irq_type; |
77 | disable_intreq_irq(irq); | 77 | disable_intreq_irq(irq); |
78 | } | 78 | } |
79 | 79 | ||
diff --git a/arch/sh/boards/se/770x/setup.c b/arch/sh/boards/se/770x/setup.c index f3f82b7c8217..a1d51d5fa925 100644 --- a/arch/sh/boards/se/770x/setup.c +++ b/arch/sh/boards/se/770x/setup.c | |||
@@ -8,13 +8,10 @@ | |||
8 | * | 8 | * |
9 | */ | 9 | */ |
10 | #include <linux/init.h> | 10 | #include <linux/init.h> |
11 | #include <linux/irq.h> | 11 | #include <asm/machvec.h> |
12 | #include <linux/hdreg.h> | ||
13 | #include <linux/ide.h> | ||
14 | #include <asm/io.h> | ||
15 | #include <asm/se.h> | 12 | #include <asm/se.h> |
13 | #include <asm/io.h> | ||
16 | #include <asm/smc37c93x.h> | 14 | #include <asm/smc37c93x.h> |
17 | #include <asm/machvec.h> | ||
18 | 15 | ||
19 | void heartbeat_se(void); | 16 | void heartbeat_se(void); |
20 | void init_se_IRQ(void); | 17 | void init_se_IRQ(void); |
diff --git a/arch/sh/boards/se/7751/setup.c b/arch/sh/boards/se/7751/setup.c index 73e826310ba8..f7e1dd39c836 100644 --- a/arch/sh/boards/se/7751/setup.c +++ b/arch/sh/boards/se/7751/setup.c | |||
@@ -8,12 +8,10 @@ | |||
8 | * Modified for 7751 Solution Engine by | 8 | * Modified for 7751 Solution Engine by |
9 | * Ian da Silva and Jeremy Siegel, 2001. | 9 | * Ian da Silva and Jeremy Siegel, 2001. |
10 | */ | 10 | */ |
11 | |||
12 | #include <linux/init.h> | 11 | #include <linux/init.h> |
13 | #include <linux/irq.h> | 12 | #include <asm/machvec.h> |
14 | #include <linux/ide.h> | ||
15 | #include <asm/io.h> | ||
16 | #include <asm/se7751.h> | 13 | #include <asm/se7751.h> |
14 | #include <asm/io.h> | ||
17 | 15 | ||
18 | void heartbeat_7751se(void); | 16 | void heartbeat_7751se(void); |
19 | void init_7751se_IRQ(void); | 17 | void init_7751se_IRQ(void); |
diff --git a/arch/sh/boards/sh03/setup.c b/arch/sh/boards/sh03/setup.c index 6c310587ddfe..137e2ba9243e 100644 --- a/arch/sh/boards/sh03/setup.c +++ b/arch/sh/boards/sh03/setup.c | |||
@@ -7,6 +7,7 @@ | |||
7 | 7 | ||
8 | #include <linux/init.h> | 8 | #include <linux/init.h> |
9 | #include <linux/irq.h> | 9 | #include <linux/irq.h> |
10 | #include <linux/pci.h> | ||
10 | #include <asm/io.h> | 11 | #include <asm/io.h> |
11 | #include <asm/rtc.h> | 12 | #include <asm/rtc.h> |
12 | #include <asm/sh03/io.h> | 13 | #include <asm/sh03/io.h> |
diff --git a/arch/sh/drivers/dma/dma-sysfs.c b/arch/sh/drivers/dma/dma-sysfs.c index 70a5d82eb2f8..29b8ef9873d1 100644 --- a/arch/sh/drivers/dma/dma-sysfs.c +++ b/arch/sh/drivers/dma/dma-sysfs.c | |||
@@ -48,12 +48,11 @@ static int __init dma_sysclass_init(void) | |||
48 | int ret; | 48 | int ret; |
49 | 49 | ||
50 | ret = sysdev_class_register(&dma_sysclass); | 50 | ret = sysdev_class_register(&dma_sysclass); |
51 | if (ret == 0) | 51 | if (unlikely(ret)) |
52 | sysfs_create_file(&dma_sysclass.kset.kobj, &attr_devices.attr); | 52 | return ret; |
53 | 53 | ||
54 | return ret; | 54 | return sysfs_create_file(&dma_sysclass.kset.kobj, &attr_devices.attr); |
55 | } | 55 | } |
56 | |||
57 | postcore_initcall(dma_sysclass_init); | 56 | postcore_initcall(dma_sysclass_init); |
58 | 57 | ||
59 | static ssize_t dma_show_dev_id(struct sys_device *dev, char *buf) | 58 | static ssize_t dma_show_dev_id(struct sys_device *dev, char *buf) |
@@ -152,4 +151,3 @@ void dma_remove_sysfs_files(struct dma_channel *chan, struct dma_info *info) | |||
152 | 151 | ||
153 | sysdev_unregister(dev); | 152 | sysdev_unregister(dev); |
154 | } | 153 | } |
155 | |||
diff --git a/arch/sh/drivers/pci/ops-sh03.c b/arch/sh/drivers/pci/ops-sh03.c index e58d556e5f94..ebb58e605d9d 100644 --- a/arch/sh/drivers/pci/ops-sh03.c +++ b/arch/sh/drivers/pci/ops-sh03.c | |||
@@ -35,10 +35,10 @@ static struct resource sh7751_mem_resource = { | |||
35 | .flags = IORESOURCE_MEM | 35 | .flags = IORESOURCE_MEM |
36 | }; | 36 | }; |
37 | 37 | ||
38 | extern struct pci_ops sh7751_pci_ops; | 38 | extern struct pci_ops sh4_pci_ops; |
39 | 39 | ||
40 | struct pci_channel board_pci_channels[] = { | 40 | struct pci_channel board_pci_channels[] = { |
41 | { &sh7751_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, | 41 | { &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, |
42 | { NULL, NULL, NULL, 0, 0 }, | 42 | { NULL, NULL, NULL, 0, 0 }, |
43 | }; | 43 | }; |
44 | 44 | ||
diff --git a/arch/sh/kernel/entry.S b/arch/sh/kernel/entry.S index fe8221855b28..97c571fbcdf1 100644 --- a/arch/sh/kernel/entry.S +++ b/arch/sh/kernel/entry.S | |||
@@ -10,8 +10,8 @@ | |||
10 | * for more details. | 10 | * for more details. |
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | |||
14 | #include <linux/sys.h> | 13 | #include <linux/sys.h> |
14 | #include <linux/errno.h> | ||
15 | #include <linux/linkage.h> | 15 | #include <linux/linkage.h> |
16 | #include <asm/asm-offsets.h> | 16 | #include <asm/asm-offsets.h> |
17 | #include <asm/thread_info.h> | 17 | #include <asm/thread_info.h> |
@@ -53,10 +53,6 @@ | |||
53 | * syscall # | 53 | * syscall # |
54 | * | 54 | * |
55 | */ | 55 | */ |
56 | |||
57 | ENOSYS = 38 | ||
58 | EINVAL = 22 | ||
59 | |||
60 | #if defined(CONFIG_KGDB_NMI) | 56 | #if defined(CONFIG_KGDB_NMI) |
61 | NMI_VEC = 0x1c0 ! Must catch early for debounce | 57 | NMI_VEC = 0x1c0 ! Must catch early for debounce |
62 | #endif | 58 | #endif |
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 77491cf9b259..36d86f9ac38a 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c | |||
@@ -1,5 +1,4 @@ | |||
1 | /* $Id: setup.c,v 1.30 2003/10/13 07:21:19 lethal Exp $ | 1 | /* |
2 | * | ||
3 | * linux/arch/sh/kernel/setup.c | 2 | * linux/arch/sh/kernel/setup.c |
4 | * | 3 | * |
5 | * Copyright (C) 1999 Niibe Yutaka | 4 | * Copyright (C) 1999 Niibe Yutaka |
@@ -21,6 +20,7 @@ | |||
21 | #include <linux/utsname.h> | 20 | #include <linux/utsname.h> |
22 | #include <linux/cpu.h> | 21 | #include <linux/cpu.h> |
23 | #include <linux/pfn.h> | 22 | #include <linux/pfn.h> |
23 | #include <linux/fs.h> | ||
24 | #include <asm/uaccess.h> | 24 | #include <asm/uaccess.h> |
25 | #include <asm/io.h> | 25 | #include <asm/io.h> |
26 | #include <asm/sections.h> | 26 | #include <asm/sections.h> |
diff --git a/arch/sh/kernel/sh_ksyms.c b/arch/sh/kernel/sh_ksyms.c index d3cbfa2ad4a7..9daad70bc305 100644 --- a/arch/sh/kernel/sh_ksyms.c +++ b/arch/sh/kernel/sh_ksyms.c | |||
@@ -72,6 +72,7 @@ DECLARE_EXPORT(__ashrdi3); | |||
72 | DECLARE_EXPORT(__ashldi3); | 72 | DECLARE_EXPORT(__ashldi3); |
73 | DECLARE_EXPORT(__lshrdi3); | 73 | DECLARE_EXPORT(__lshrdi3); |
74 | DECLARE_EXPORT(__movstr); | 74 | DECLARE_EXPORT(__movstr); |
75 | DECLARE_EXPORT(__movstrSI16); | ||
75 | 76 | ||
76 | EXPORT_SYMBOL(strcpy); | 77 | EXPORT_SYMBOL(strcpy); |
77 | 78 | ||
diff --git a/arch/sh/mm/cache-debugfs.c b/arch/sh/mm/cache-debugfs.c index a22d914e4d15..e0122bd33ddb 100644 --- a/arch/sh/mm/cache-debugfs.c +++ b/arch/sh/mm/cache-debugfs.c | |||
@@ -111,7 +111,7 @@ static int cache_seq_show(struct seq_file *file, void *iter) | |||
111 | 111 | ||
112 | static int cache_debugfs_open(struct inode *inode, struct file *file) | 112 | static int cache_debugfs_open(struct inode *inode, struct file *file) |
113 | { | 113 | { |
114 | return single_open(file, cache_seq_show, inode->u.generic_ip); | 114 | return single_open(file, cache_seq_show, inode->i_private); |
115 | } | 115 | } |
116 | 116 | ||
117 | static struct file_operations cache_debugfs_fops = { | 117 | static struct file_operations cache_debugfs_fops = { |