diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-07-20 03:59:49 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-07-20 03:59:49 -0400 |
commit | 98d877c487a75af78f74780703aa6b174780788d (patch) | |
tree | 7edbc7772bc5498e5a420c59363d5ec68623150f /arch/sh | |
parent | 3a353824df7595165a162aee3b53e4d96e7dfa95 (diff) |
sh: Many symbol exports for nommu allmodconfig.
allmodconfig generates a lot of interesting code, a lot of the
generated symbols we've never exported before, so this fixes
those up. Verified with both GCC3 and GCC4 toolchains.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/setup.c | 7 | ||||
-rw-r--r-- | arch/sh/kernel/sh_bios.c | 3 | ||||
-rw-r--r-- | arch/sh/kernel/sh_ksyms.c | 35 |
3 files changed, 43 insertions, 2 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index de8e6e2f2c87..c14a3e95d0b1 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/fs.h> | 21 | #include <linux/fs.h> |
22 | #include <linux/mm.h> | 22 | #include <linux/mm.h> |
23 | #include <linux/kexec.h> | 23 | #include <linux/kexec.h> |
24 | #include <linux/module.h> | ||
24 | #include <asm/uaccess.h> | 25 | #include <asm/uaccess.h> |
25 | #include <asm/io.h> | 26 | #include <asm/io.h> |
26 | #include <asm/page.h> | 27 | #include <asm/page.h> |
@@ -78,7 +79,11 @@ static char __initdata command_line[COMMAND_LINE_SIZE] = { 0, }; | |||
78 | static struct resource code_resource = { .name = "Kernel code", }; | 79 | static struct resource code_resource = { .name = "Kernel code", }; |
79 | static struct resource data_resource = { .name = "Kernel data", }; | 80 | static struct resource data_resource = { .name = "Kernel data", }; |
80 | 81 | ||
81 | unsigned long memory_start, memory_end; | 82 | unsigned long memory_start; |
83 | EXPORT_SYMBOL(memory_start); | ||
84 | |||
85 | unsigned long memory_end; | ||
86 | EXPORT_SYMBOL(memory_end); | ||
82 | 87 | ||
83 | static int __init early_parse_mem(char *p) | 88 | static int __init early_parse_mem(char *p) |
84 | { | 89 | { |
diff --git a/arch/sh/kernel/sh_bios.c b/arch/sh/kernel/sh_bios.c index 5b53e10bb9cd..d1bcac4fa269 100644 --- a/arch/sh/kernel/sh_bios.c +++ b/arch/sh/kernel/sh_bios.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * Copyright (C) 2000 Greg Banks, Mitch Davis | 5 | * Copyright (C) 2000 Greg Banks, Mitch Davis |
6 | * | 6 | * |
7 | */ | 7 | */ |
8 | 8 | #include <linux/module.h> | |
9 | #include <asm/sh_bios.h> | 9 | #include <asm/sh_bios.h> |
10 | 10 | ||
11 | #define BIOS_CALL_CONSOLE_WRITE 0 | 11 | #define BIOS_CALL_CONSOLE_WRITE 0 |
@@ -63,6 +63,7 @@ void sh_bios_gdb_detach(void) | |||
63 | { | 63 | { |
64 | sh_bios_call(BIOS_CALL_GDB_DETACH, 0, 0, 0, 0); | 64 | sh_bios_call(BIOS_CALL_GDB_DETACH, 0, 0, 0, 0); |
65 | } | 65 | } |
66 | EXPORT_SYMBOL(sh_bios_gdb_detach); | ||
66 | 67 | ||
67 | void sh_bios_get_node_addr (unsigned char *node_addr) | 68 | void sh_bios_get_node_addr (unsigned char *node_addr) |
68 | { | 69 | { |
diff --git a/arch/sh/kernel/sh_ksyms.c b/arch/sh/kernel/sh_ksyms.c index c968dcf09eee..37aef0a85197 100644 --- a/arch/sh/kernel/sh_ksyms.c +++ b/arch/sh/kernel/sh_ksyms.c | |||
@@ -63,10 +63,43 @@ EXPORT_SYMBOL(__const_udelay); | |||
63 | /* These symbols are generated by the compiler itself */ | 63 | /* These symbols are generated by the compiler itself */ |
64 | DECLARE_EXPORT(__udivsi3); | 64 | DECLARE_EXPORT(__udivsi3); |
65 | DECLARE_EXPORT(__sdivsi3); | 65 | DECLARE_EXPORT(__sdivsi3); |
66 | DECLARE_EXPORT(__ashrsi3); | ||
67 | DECLARE_EXPORT(__ashlsi3); | ||
66 | DECLARE_EXPORT(__ashrdi3); | 68 | DECLARE_EXPORT(__ashrdi3); |
67 | DECLARE_EXPORT(__ashldi3); | 69 | DECLARE_EXPORT(__ashldi3); |
70 | DECLARE_EXPORT(__ashiftrt_r4_6); | ||
71 | DECLARE_EXPORT(__ashiftrt_r4_7); | ||
72 | DECLARE_EXPORT(__ashiftrt_r4_8); | ||
73 | DECLARE_EXPORT(__ashiftrt_r4_9); | ||
74 | DECLARE_EXPORT(__ashiftrt_r4_10); | ||
75 | DECLARE_EXPORT(__ashiftrt_r4_11); | ||
76 | DECLARE_EXPORT(__ashiftrt_r4_12); | ||
77 | DECLARE_EXPORT(__ashiftrt_r4_13); | ||
78 | DECLARE_EXPORT(__ashiftrt_r4_14); | ||
79 | DECLARE_EXPORT(__ashiftrt_r4_15); | ||
80 | DECLARE_EXPORT(__ashiftrt_r4_20); | ||
81 | DECLARE_EXPORT(__ashiftrt_r4_21); | ||
82 | DECLARE_EXPORT(__ashiftrt_r4_22); | ||
83 | DECLARE_EXPORT(__ashiftrt_r4_23); | ||
84 | DECLARE_EXPORT(__ashiftrt_r4_24); | ||
85 | DECLARE_EXPORT(__ashiftrt_r4_27); | ||
86 | DECLARE_EXPORT(__ashiftrt_r4_30); | ||
87 | DECLARE_EXPORT(__lshrsi3); | ||
68 | DECLARE_EXPORT(__lshrdi3); | 88 | DECLARE_EXPORT(__lshrdi3); |
89 | DECLARE_EXPORT(__movstrSI8); | ||
90 | DECLARE_EXPORT(__movstrSI12); | ||
69 | DECLARE_EXPORT(__movstrSI16); | 91 | DECLARE_EXPORT(__movstrSI16); |
92 | DECLARE_EXPORT(__movstrSI20); | ||
93 | DECLARE_EXPORT(__movstrSI24); | ||
94 | DECLARE_EXPORT(__movstrSI28); | ||
95 | DECLARE_EXPORT(__movstrSI32); | ||
96 | DECLARE_EXPORT(__movstrSI36); | ||
97 | DECLARE_EXPORT(__movstrSI40); | ||
98 | DECLARE_EXPORT(__movstrSI44); | ||
99 | DECLARE_EXPORT(__movstrSI48); | ||
100 | DECLARE_EXPORT(__movstrSI52); | ||
101 | DECLARE_EXPORT(__movstrSI56); | ||
102 | DECLARE_EXPORT(__movstrSI60); | ||
70 | #if __GNUC__ == 4 | 103 | #if __GNUC__ == 4 |
71 | DECLARE_EXPORT(__movmem); | 104 | DECLARE_EXPORT(__movmem); |
72 | #else | 105 | #else |
@@ -115,7 +148,9 @@ EXPORT_SYMBOL(synchronize_irq); | |||
115 | #endif | 148 | #endif |
116 | 149 | ||
117 | EXPORT_SYMBOL(csum_partial); | 150 | EXPORT_SYMBOL(csum_partial); |
151 | EXPORT_SYMBOL(csum_partial_copy_generic); | ||
118 | #ifdef CONFIG_IPV6 | 152 | #ifdef CONFIG_IPV6 |
119 | EXPORT_SYMBOL(csum_ipv6_magic); | 153 | EXPORT_SYMBOL(csum_ipv6_magic); |
120 | #endif | 154 | #endif |
121 | EXPORT_SYMBOL(clear_page); | 155 | EXPORT_SYMBOL(clear_page); |
156 | EXPORT_SYMBOL(__clear_user); | ||