diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-10-01 04:36:47 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-10-01 04:36:47 -0400 |
commit | 749c84966c990092da20203a80e0749b614c79a6 (patch) | |
tree | 372b967a397d636f3cf6937a644d56660ffbfbe2 /arch/sh64/kernel | |
parent | 6b3d7f02a180af0d711d259adb4eccde1c3f10cd (diff) |
sh64: Some symbol exports and build fixes.
This fixes up misc build issues that were hit on the non-cayman
boards. Additionally, quite a few symbols needed to be exported
to fix the module build.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh64/kernel')
-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 |
3 files changed, 11 insertions, 20 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); | ||