sh: build fixes for defconfigs.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 3 Oct 2006 04:14:04 +0000 (13:14 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 3 Oct 2006 04:14:04 +0000 (13:14 +0900)
Get all of the defconfigs building again.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
16 files changed:
arch/sh/boards/landisk/irq.c
arch/sh/boards/renesas/r7780rp/irq.c
arch/sh/boards/renesas/systemh/setup.c
arch/sh/boards/se/7343/irq.c
arch/sh/boards/se/770x/setup.c
arch/sh/boards/se/7751/setup.c
arch/sh/boards/sh03/setup.c
arch/sh/drivers/dma/dma-sysfs.c
arch/sh/drivers/pci/ops-sh03.c
arch/sh/kernel/entry.S
arch/sh/kernel/setup.c
arch/sh/kernel/sh_ksyms.c
arch/sh/mm/cache-debugfs.c
include/asm-sh/elf.h
include/asm-sh/rts7751r2d/rts7751r2d.h
include/asm-sh/string.h

index a006d6443225fca54abf6f57b0dd29513d709d88..5891fcd804059b1f14c508644eb5145cc98eee67 100644 (file)
@@ -83,7 +83,7 @@ static struct hw_interrupt_type landisk_irq_type = {
 static void make_landisk_irq(unsigned int irq)
 {
        disable_irq_nosync(irq);
-       irq_desc[irq].handler = &landisk_irq_type;
+       irq_desc[irq].chip = &landisk_irq_type;
        disable_landisk_irq(irq);
 }
 
index 61d5e5d3c2949575d10e8d358f0e10df17877fe3..769ae6b6512337963c23fd9486b4fb4942499254 100644 (file)
@@ -83,7 +83,7 @@ static struct hw_interrupt_type r7780rp_irq_type = {
 static void make_r7780rp_irq(unsigned int irq)
 {
        disable_irq_nosync(irq);
-       irq_desc[irq].handler = &r7780rp_irq_type;
+       irq_desc[irq].chip = &r7780rp_irq_type;
        disable_r7780rp_irq(irq);
 }
 
index a8467bf90c2515d00df03feb1926931e9e7321f3..bab7d3cdc87b6f57dc1d1223843116c2c44bfb5c 100644 (file)
@@ -53,6 +53,6 @@ struct sh_machine_vector mv_7751systemh __initmv = {
        .mv_outsw               = sh7751systemh_outsw,
        .mv_outsl               = sh7751systemh_outsl,
 
-       .mv_init_irq            = sh7751system_init_irq,
+       .mv_init_irq            = sh7751systemh_init_irq,
 };
 ALIAS_MV(7751systemh)
index b41e3d4ea37c41af4a5f03e74f11522d5e5a8f83..739a7b001bb71b378dc09ac28af7c2f1b9d1112b 100644 (file)
@@ -73,7 +73,7 @@ static void
 make_intreq_irq(unsigned int irq)
 {
        disable_irq_nosync(irq);
-       irq_desc[irq].handler = &intreq_irq_type;
+       irq_desc[irq].chip = &intreq_irq_type;
        disable_intreq_irq(irq);
 }
 
index f3f82b7c821740b22849caadb665d82330fdca0c..a1d51d5fa925cbb56512a98cf913c2d40d27312b 100644 (file)
@@ -8,13 +8,10 @@
  *
  */
 #include <linux/init.h>
-#include <linux/irq.h>
-#include <linux/hdreg.h>
-#include <linux/ide.h>
-#include <asm/io.h>
+#include <asm/machvec.h>
 #include <asm/se.h>
+#include <asm/io.h>
 #include <asm/smc37c93x.h>
-#include <asm/machvec.h>
 
 void heartbeat_se(void);
 void init_se_IRQ(void);
index 73e826310ba8748379395871c663681cbfa99939..f7e1dd39c8364c30db40874a04e391144f249b17 100644 (file)
@@ -8,12 +8,10 @@
  * Modified for 7751 Solution Engine by
  * Ian da Silva and Jeremy Siegel, 2001.
  */
-
 #include <linux/init.h>
-#include <linux/irq.h>
-#include <linux/ide.h>
-#include <asm/io.h>
+#include <asm/machvec.h>
 #include <asm/se7751.h>
+#include <asm/io.h>
 
 void heartbeat_7751se(void);
 void init_7751se_IRQ(void);
index 6c310587ddfe72ecc15848d34297e1e52ec7f2b0..137e2ba9243e82a85f222e455f852f357df3a5d9 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <linux/init.h>
 #include <linux/irq.h>
+#include <linux/pci.h>
 #include <asm/io.h>
 #include <asm/rtc.h>
 #include <asm/sh03/io.h>
index 70a5d82eb2f8c8b6a10340e152e77357304ce162..29b8ef9873d19128f27c150275e8705b2d7357c5 100644 (file)
@@ -48,12 +48,11 @@ static int __init dma_sysclass_init(void)
        int ret;
 
        ret = sysdev_class_register(&dma_sysclass);
-       if (ret == 0)
-               sysfs_create_file(&dma_sysclass.kset.kobj, &attr_devices.attr);
+       if (unlikely(ret))
+               return ret;
 
-       return ret;
+       return sysfs_create_file(&dma_sysclass.kset.kobj, &attr_devices.attr);
 }
-
 postcore_initcall(dma_sysclass_init);
 
 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)
 
        sysdev_unregister(dev);
 }
-
index e58d556e5f94b0cde1523815f6dacbdff9fdf7d6..ebb58e605d9d27ddd47fecc45ce30d3a1e11a5db 100644 (file)
@@ -35,10 +35,10 @@ static struct resource sh7751_mem_resource = {
        .flags  = IORESOURCE_MEM
 };
 
-extern struct pci_ops sh7751_pci_ops;
+extern struct pci_ops sh4_pci_ops;
 
 struct pci_channel board_pci_channels[] = {
-       { &sh7751_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff },
+       { &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff },
        { NULL, NULL, NULL, 0, 0 },
 };
 
index fe8221855b282648f25472cd64286814728f7843..97c571fbcdf13a5e2922867c143bf55dcb432292 100644 (file)
@@ -10,8 +10,8 @@
  * for more details.
  *
  */
-
 #include <linux/sys.h>
+#include <linux/errno.h>
 #include <linux/linkage.h>
 #include <asm/asm-offsets.h>
 #include <asm/thread_info.h>
  *     syscall #
  *
  */
-
-ENOSYS = 38
-EINVAL = 22
-
 #if defined(CONFIG_KGDB_NMI)
 NMI_VEC = 0x1c0                        ! Must catch early for debounce
 #endif
index 77491cf9b2597565e23e327a0af8ca22620ac69d..36d86f9ac38a78b2834c6ba6551c1a6053ac76ef 100644 (file)
@@ -1,5 +1,4 @@
-/* $Id: setup.c,v 1.30 2003/10/13 07:21:19 lethal Exp $
- *
+/*
  *  linux/arch/sh/kernel/setup.c
  *
  *  Copyright (C) 1999  Niibe Yutaka
@@ -21,6 +20,7 @@
 #include <linux/utsname.h>
 #include <linux/cpu.h>
 #include <linux/pfn.h>
+#include <linux/fs.h>
 #include <asm/uaccess.h>
 #include <asm/io.h>
 #include <asm/sections.h>
index d3cbfa2ad4a785b13d9e6b130ee5c435b9cbf948..9daad70bc3050bf45a86e83b25018295a164be11 100644 (file)
@@ -72,6 +72,7 @@ DECLARE_EXPORT(__ashrdi3);
 DECLARE_EXPORT(__ashldi3);
 DECLARE_EXPORT(__lshrdi3);
 DECLARE_EXPORT(__movstr);
+DECLARE_EXPORT(__movstrSI16);
 
 EXPORT_SYMBOL(strcpy);
 
index a22d914e4d15a1f52a8a9fba5c32894f2c81e596..e0122bd33ddb6373771e0d10bc648063ff2d990d 100644 (file)
@@ -111,7 +111,7 @@ static int cache_seq_show(struct seq_file *file, void *iter)
 
 static int cache_debugfs_open(struct inode *inode, struct file *file)
 {
-       return single_open(file, cache_seq_show, inode->u.generic_ip);
+       return single_open(file, cache_seq_show, inode->i_private);
 }
 
 static struct file_operations cache_debugfs_fops = {
index 3a07ab40ac4d0a66eab64eb094f538e08fef68bb..fc050fd7645e0e11c29fcf63cf7e1554dca148e7 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef __ASM_SH_ELF_H
 #define __ASM_SH_ELF_H
 
-#include <asm/processor.h>
 #include <asm/auxvec.h>
 #include <asm/ptrace.h>
 #include <asm/user.h>
index b112ae221fd1f4ca0b6ac87cb50909df83037544..796b8fcb81a8984ce5d887e49840d3c0f5fd74d3 100644 (file)
@@ -68,4 +68,7 @@
 #define IRQ_PCISLOT2   10              /* PCI Slot #2 IRQ */
 #define        IRQ_EXTENTION   11              /* EXTn IRQ */
 
+#define __IO_PREFIX rts7751r2d
+#include <asm/io_generic.h>
+
 #endif  /* __ASM_SH_RENESAS_RTS7751R2D */
index 3e0cff04caec8c32adb8c4bcda7a9f209243377d..95bc7db006b0761db05829e730323533e2553970 100644 (file)
@@ -1,13 +1,15 @@
 #ifndef __ASM_SH_STRING_H
 #define __ASM_SH_STRING_H
 
+#ifdef __KERNEL__
+
 /*
  * Copyright (C) 1999 Niibe Yutaka
  * But consider these trivial functions to be public domain.
  */
 
 #define __HAVE_ARCH_STRCPY
-static __inline__ char *strcpy(char *__dest, const char *__src)
+static inline char *strcpy(char *__dest, const char *__src)
 {
        register char *__xdest = __dest;
        unsigned long __dummy;
@@ -26,7 +28,7 @@ static __inline__ char *strcpy(char *__dest, const char *__src)
 }
 
 #define __HAVE_ARCH_STRNCPY
-static __inline__ char *strncpy(char *__dest, const char *__src, size_t __n)
+static inline char *strncpy(char *__dest, const char *__src, size_t __n)
 {
        register char *__xdest = __dest;
        unsigned long __dummy;
@@ -52,7 +54,7 @@ static __inline__ char *strncpy(char *__dest, const char *__src, size_t __n)
 }
 
 #define __HAVE_ARCH_STRCMP
-static __inline__ int strcmp(const char *__cs, const char *__ct)
+static inline int strcmp(const char *__cs, const char *__ct)
 {
        register int __res;
        unsigned long __dummy;
@@ -78,7 +80,7 @@ static __inline__ int strcmp(const char *__cs, const char *__ct)
 }
 
 #define __HAVE_ARCH_STRNCMP
-static __inline__ int strncmp(const char *__cs, const char *__ct, size_t __n)
+static inline int strncmp(const char *__cs, const char *__ct, size_t __n)
 {
        register int __res;
        unsigned long __dummy;
@@ -124,4 +126,9 @@ extern void *memchr(const void *__s, int __c, size_t __n);
 #define __HAVE_ARCH_STRLEN
 extern size_t strlen(const char *);
 
+/* arch/sh/lib/strcasecmp.c */
+extern int strcasecmp(const char *, const char *);
+
+#endif /* __KERNEL__ */
+
 #endif /* __ASM_SH_STRING_H */
This page took 0.037169 seconds and 5 git commands to generate.