diff options
author | James Hogan <james.hogan@imgtec.com> | 2013-02-13 07:55:51 -0500 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2013-03-02 15:11:15 -0500 |
commit | 7293dbed9d8be1916034dbfcf2f203e96bd8fae1 (patch) | |
tree | c8f691277091762579a264d976a72c5f9acd45f9 | |
parent | aa29ec5f79f61ad880771d53d37a341cc7f5dfa6 (diff) |
metag: move setup.c exports out of metag_ksyms.c
It's less error prone to have function symbols exported immediately
after the function rather than in metag_ksyms.c. Move each EXPORT_SYMBOL
in metag_ksyms.c for symbols defined in setup.c into setup.c
Signed-off-by: James Hogan <james.hogan@imgtec.com>
-rw-r--r-- | arch/metag/kernel/metag_ksyms.c | 5 | ||||
-rw-r--r-- | arch/metag/kernel/setup.c | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/arch/metag/kernel/metag_ksyms.c b/arch/metag/kernel/metag_ksyms.c index eef6576ab4e2..8ce3c3df2028 100644 --- a/arch/metag/kernel/metag_ksyms.c +++ b/arch/metag/kernel/metag_ksyms.c | |||
@@ -6,10 +6,8 @@ | |||
6 | #include <linux/interrupt.h> | 6 | #include <linux/interrupt.h> |
7 | #include <linux/hardirq.h> | 7 | #include <linux/hardirq.h> |
8 | 8 | ||
9 | #include <asm/setup.h> | ||
10 | #include <asm/checksum.h> | 9 | #include <asm/checksum.h> |
11 | #include <asm/uaccess.h> | 10 | #include <asm/uaccess.h> |
12 | #include <asm/traps.h> | ||
13 | #include <asm/ftrace.h> | 11 | #include <asm/ftrace.h> |
14 | #include <asm/tbx.h> | 12 | #include <asm/tbx.h> |
15 | 13 | ||
@@ -27,9 +25,6 @@ EXPORT_SYMBOL(__strncpy_from_user); | |||
27 | EXPORT_SYMBOL(strnlen_user); | 25 | EXPORT_SYMBOL(strnlen_user); |
28 | EXPORT_SYMBOL(__do_clear_user); | 26 | EXPORT_SYMBOL(__do_clear_user); |
29 | 27 | ||
30 | EXPORT_SYMBOL(pTBI_get); | ||
31 | EXPORT_SYMBOL(meta_memoffset); | ||
32 | |||
33 | EXPORT_SYMBOL(clear_page); | 28 | EXPORT_SYMBOL(clear_page); |
34 | EXPORT_SYMBOL(copy_page); | 29 | EXPORT_SYMBOL(copy_page); |
35 | EXPORT_SYMBOL(empty_zero_page); | 30 | EXPORT_SYMBOL(empty_zero_page); |
diff --git a/arch/metag/kernel/setup.c b/arch/metag/kernel/setup.c index 9803ca4f6510..dd6c5ad73917 100644 --- a/arch/metag/kernel/setup.c +++ b/arch/metag/kernel/setup.c | |||
@@ -5,6 +5,7 @@ | |||
5 | * | 5 | * |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include <linux/export.h> | ||
8 | #include <linux/bootmem.h> | 9 | #include <linux/bootmem.h> |
9 | #include <linux/console.h> | 10 | #include <linux/console.h> |
10 | #include <linux/cpu.h> | 11 | #include <linux/cpu.h> |
@@ -141,6 +142,7 @@ u8 hwthread_id_2_cpu[4] __read_mostly = { | |||
141 | * probably only be used via them. | 142 | * probably only be used via them. |
142 | */ | 143 | */ |
143 | unsigned int meta_memoffset; | 144 | unsigned int meta_memoffset; |
145 | EXPORT_SYMBOL(meta_memoffset); | ||
144 | 146 | ||
145 | static char __initdata *original_cmd_line; | 147 | static char __initdata *original_cmd_line; |
146 | 148 | ||
@@ -579,6 +581,7 @@ PTBI pTBI_get(unsigned int cpu) | |||
579 | { | 581 | { |
580 | return per_cpu(pTBI, cpu); | 582 | return per_cpu(pTBI, cpu); |
581 | } | 583 | } |
584 | EXPORT_SYMBOL(pTBI_get); | ||
582 | 585 | ||
583 | #if defined(CONFIG_METAG_DSP) && defined(CONFIG_METAG_FPU) | 586 | #if defined(CONFIG_METAG_DSP) && defined(CONFIG_METAG_FPU) |
584 | char capabilites[] = "dsp fpu"; | 587 | char capabilites[] = "dsp fpu"; |