diff options
-rw-r--r-- | arch/sh64/kernel/alphanum.c | 1 | ||||
-rw-r--r-- | arch/sh64/kernel/pci-dma.c | 4 | ||||
-rw-r--r-- | arch/sh64/kernel/sh_ksyms.c | 26 | ||||
-rw-r--r-- | arch/sh64/lib/c-checksum.c | 3 | ||||
-rw-r--r-- | arch/sh64/lib/iomap.c | 10 | ||||
-rw-r--r-- | arch/sh64/mm/ioremap.c | 7 |
6 files changed, 23 insertions, 28 deletions
diff --git a/arch/sh64/kernel/alphanum.c b/arch/sh64/kernel/alphanum.c index 91707c1acd70..d1619d95fbaa 100644 --- a/arch/sh64/kernel/alphanum.c +++ b/arch/sh64/kernel/alphanum.c | |||
@@ -13,7 +13,6 @@ | |||
13 | #include <linux/sched.h> | 13 | #include <linux/sched.h> |
14 | 14 | ||
15 | void mach_alphanum(int pos, unsigned char val); | 15 | void mach_alphanum(int pos, unsigned char val); |
16 | void mach_led(int pos, int val); | ||
17 | 16 | ||
18 | void print_seg(char *file, int line) | 17 | void print_seg(char *file, int line) |
19 | { | 18 | { |
diff --git a/arch/sh64/kernel/pci-dma.c b/arch/sh64/kernel/pci-dma.c index a9328f894755..8875a2a40da7 100644 --- a/arch/sh64/kernel/pci-dma.c +++ b/arch/sh64/kernel/pci-dma.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/mm.h> | 11 | #include <linux/mm.h> |
12 | #include <linux/string.h> | 12 | #include <linux/string.h> |
13 | #include <linux/pci.h> | 13 | #include <linux/pci.h> |
14 | #include <linux/module.h> | ||
14 | #include <asm/io.h> | 15 | #include <asm/io.h> |
15 | 16 | ||
16 | void *consistent_alloc(struct pci_dev *hwdev, size_t size, | 17 | void *consistent_alloc(struct pci_dev *hwdev, size_t size, |
@@ -36,6 +37,7 @@ void *consistent_alloc(struct pci_dev *hwdev, size_t size, | |||
36 | 37 | ||
37 | return vp; | 38 | return vp; |
38 | } | 39 | } |
40 | EXPORT_SYMBOL(consistent_alloc); | ||
39 | 41 | ||
40 | void consistent_free(struct pci_dev *hwdev, size_t size, | 42 | void consistent_free(struct pci_dev *hwdev, size_t size, |
41 | void *vaddr, dma_addr_t dma_handle) | 43 | void *vaddr, dma_addr_t dma_handle) |
@@ -47,4 +49,4 @@ void consistent_free(struct pci_dev *hwdev, size_t size, | |||
47 | 49 | ||
48 | iounmap(vaddr); | 50 | iounmap(vaddr); |
49 | } | 51 | } |
50 | 52 | EXPORT_SYMBOL(consistent_free); | |
diff --git a/arch/sh64/kernel/sh_ksyms.c b/arch/sh64/kernel/sh_ksyms.c index 461ea3de316f..962c732961e4 100644 --- a/arch/sh64/kernel/sh_ksyms.c +++ b/arch/sh64/kernel/sh_ksyms.c | |||
@@ -31,16 +31,11 @@ extern int dump_fpu(struct pt_regs *, elf_fpregset_t *); | |||
31 | 31 | ||
32 | /* platform dependent support */ | 32 | /* platform dependent support */ |
33 | EXPORT_SYMBOL(dump_fpu); | 33 | EXPORT_SYMBOL(dump_fpu); |
34 | EXPORT_SYMBOL(iounmap); | ||
35 | EXPORT_SYMBOL(enable_irq); | ||
36 | EXPORT_SYMBOL(disable_irq); | ||
37 | EXPORT_SYMBOL(kernel_thread); | 34 | EXPORT_SYMBOL(kernel_thread); |
38 | 35 | ||
39 | /* Networking helper routines. */ | 36 | /* Networking helper routines. */ |
40 | EXPORT_SYMBOL(csum_partial_copy_nocheck); | 37 | EXPORT_SYMBOL(csum_partial_copy_nocheck); |
41 | 38 | ||
42 | EXPORT_SYMBOL(strstr); | ||
43 | |||
44 | #ifdef CONFIG_VT | 39 | #ifdef CONFIG_VT |
45 | EXPORT_SYMBOL(screen_info); | 40 | EXPORT_SYMBOL(screen_info); |
46 | #endif | 41 | #endif |
@@ -50,27 +45,22 @@ EXPORT_SYMBOL(__down_trylock); | |||
50 | EXPORT_SYMBOL(__up); | 45 | EXPORT_SYMBOL(__up); |
51 | EXPORT_SYMBOL(__put_user_asm_l); | 46 | EXPORT_SYMBOL(__put_user_asm_l); |
52 | EXPORT_SYMBOL(__get_user_asm_l); | 47 | EXPORT_SYMBOL(__get_user_asm_l); |
53 | EXPORT_SYMBOL(memcmp); | ||
54 | EXPORT_SYMBOL(memcpy); | 48 | EXPORT_SYMBOL(memcpy); |
55 | EXPORT_SYMBOL(memset); | ||
56 | EXPORT_SYMBOL(memscan); | ||
57 | EXPORT_SYMBOL(strchr); | ||
58 | EXPORT_SYMBOL(strlen); | ||
59 | 49 | ||
50 | EXPORT_SYMBOL(udelay); | ||
51 | EXPORT_SYMBOL(__udelay); | ||
52 | EXPORT_SYMBOL(ndelay); | ||
53 | EXPORT_SYMBOL(__ndelay); | ||
60 | EXPORT_SYMBOL(flush_dcache_page); | 54 | EXPORT_SYMBOL(flush_dcache_page); |
61 | 55 | ||
62 | /* For ext3 */ | 56 | /* For ext3 */ |
63 | EXPORT_SYMBOL(sh64_page_clear); | 57 | EXPORT_SYMBOL(sh64_page_clear); |
64 | 58 | ||
65 | /* Ugh. These come in from libgcc.a at link time. */ | 59 | /* Ugh. These come in from libgcc.a at link time. */ |
66 | 60 | #define DECLARE_EXPORT(name) extern void name(void);EXPORT_SYMBOL(name) | |
67 | extern void __sdivsi3(void); | ||
68 | extern void __muldi3(void); | ||
69 | extern void __udivsi3(void); | ||
70 | extern char __div_table; | 61 | extern char __div_table; |
71 | EXPORT_SYMBOL(__sdivsi3); | ||
72 | EXPORT_SYMBOL(__muldi3); | ||
73 | EXPORT_SYMBOL(__udivsi3); | ||
74 | EXPORT_SYMBOL(__div_table); | 62 | EXPORT_SYMBOL(__div_table); |
75 | 63 | ||
76 | 64 | DECLARE_EXPORT(__sdivsi3); | |
65 | DECLARE_EXPORT(__muldi3); | ||
66 | DECLARE_EXPORT(__udivsi3); | ||
diff --git a/arch/sh64/lib/c-checksum.c b/arch/sh64/lib/c-checksum.c index bd5501760240..053137abd8a0 100644 --- a/arch/sh64/lib/c-checksum.c +++ b/arch/sh64/lib/c-checksum.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <linux/string.h> | 10 | #include <linux/string.h> |
11 | #include <linux/errno.h> | 11 | #include <linux/errno.h> |
12 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/module.h> | ||
13 | #include <asm/byteorder.h> | 14 | #include <asm/byteorder.h> |
14 | #include <asm/uaccess.h> | 15 | #include <asm/uaccess.h> |
15 | 16 | ||
@@ -110,7 +111,7 @@ static unsigned long do_csum(const unsigned char *buff, int len) | |||
110 | if (odd) | 111 | if (odd) |
111 | result = ((result >> 8) & 0xff) | ((result & 0xff) << 8); | 112 | result = ((result >> 8) & 0xff) | ((result & 0xff) << 8); |
112 | 113 | ||
113 | pr_debug("\nCHECKSUM is 0x%x\n", result); | 114 | pr_debug("\nCHECKSUM is 0x%lx\n", result); |
114 | 115 | ||
115 | out: | 116 | out: |
116 | return result; | 117 | return result; |
diff --git a/arch/sh64/lib/iomap.c b/arch/sh64/lib/iomap.c index 5cd3d5e9c762..253d1e351d49 100644 --- a/arch/sh64/lib/iomap.c +++ b/arch/sh64/lib/iomap.c | |||
@@ -17,12 +17,15 @@ ioport_map(unsigned long port, unsigned int len) | |||
17 | { | 17 | { |
18 | return (void __iomem *)port; | 18 | return (void __iomem *)port; |
19 | } | 19 | } |
20 | EXPORT_SYMBOL(ioport_map); | ||
20 | 21 | ||
21 | void ioport_unmap(void __iomem *addr) | 22 | void ioport_unmap(void __iomem *addr) |
22 | { | 23 | { |
23 | /* Nothing .. */ | 24 | /* Nothing .. */ |
24 | } | 25 | } |
26 | EXPORT_SYMBOL(ioport_unmap); | ||
25 | 27 | ||
28 | #ifdef CONFIG_PCI | ||
26 | void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) | 29 | void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) |
27 | { | 30 | { |
28 | unsigned long start = pci_resource_start(dev, bar); | 31 | unsigned long start = pci_resource_start(dev, bar); |
@@ -41,14 +44,11 @@ void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) | |||
41 | /* What? */ | 44 | /* What? */ |
42 | return NULL; | 45 | return NULL; |
43 | } | 46 | } |
47 | EXPORT_SYMBOL(pci_iomap); | ||
44 | 48 | ||
45 | void pci_iounmap(struct pci_dev *dev, void __iomem *addr) | 49 | void pci_iounmap(struct pci_dev *dev, void __iomem *addr) |
46 | { | 50 | { |
47 | /* Nothing .. */ | 51 | /* Nothing .. */ |
48 | } | 52 | } |
49 | |||
50 | EXPORT_SYMBOL(ioport_map); | ||
51 | EXPORT_SYMBOL(ioport_unmap); | ||
52 | EXPORT_SYMBOL(pci_iomap); | ||
53 | EXPORT_SYMBOL(pci_iounmap); | 53 | EXPORT_SYMBOL(pci_iounmap); |
54 | 54 | #endif | |
diff --git a/arch/sh64/mm/ioremap.c b/arch/sh64/mm/ioremap.c index 990857756d44..535304e6601f 100644 --- a/arch/sh64/mm/ioremap.c +++ b/arch/sh64/mm/ioremap.c | |||
@@ -19,11 +19,12 @@ | |||
19 | #include <linux/sched.h> | 19 | #include <linux/sched.h> |
20 | #include <linux/string.h> | 20 | #include <linux/string.h> |
21 | #include <linux/io.h> | 21 | #include <linux/io.h> |
22 | #include <asm/pgalloc.h> | ||
23 | #include <asm/tlbflush.h> | ||
24 | #include <linux/ioport.h> | 22 | #include <linux/ioport.h> |
25 | #include <linux/bootmem.h> | 23 | #include <linux/bootmem.h> |
26 | #include <linux/proc_fs.h> | 24 | #include <linux/proc_fs.h> |
25 | #include <linux/module.h> | ||
26 | #include <asm/pgalloc.h> | ||
27 | #include <asm/tlbflush.h> | ||
27 | 28 | ||
28 | static void shmedia_mapioaddr(unsigned long, unsigned long); | 29 | static void shmedia_mapioaddr(unsigned long, unsigned long); |
29 | static unsigned long shmedia_ioremap(struct resource *, u32, int); | 30 | static unsigned long shmedia_ioremap(struct resource *, u32, int); |
@@ -80,6 +81,7 @@ void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flag | |||
80 | } | 81 | } |
81 | return (void *) (offset + (char *)addr); | 82 | return (void *) (offset + (char *)addr); |
82 | } | 83 | } |
84 | EXPORT_SYMBOL(__ioremap); | ||
83 | 85 | ||
84 | void iounmap(void *addr) | 86 | void iounmap(void *addr) |
85 | { | 87 | { |
@@ -94,6 +96,7 @@ void iounmap(void *addr) | |||
94 | 96 | ||
95 | kfree(area); | 97 | kfree(area); |
96 | } | 98 | } |
99 | EXPORT_SYMBOL(iounmap); | ||
97 | 100 | ||
98 | static struct resource shmedia_iomap = { | 101 | static struct resource shmedia_iomap = { |
99 | .name = "shmedia_iomap", | 102 | .name = "shmedia_iomap", |