diff options
author | James Hogan <james.hogan@imgtec.com> | 2013-02-13 08:19:15 -0500 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2013-03-02 15:11:16 -0500 |
commit | 44c2451080ab3896688c852253814f5eabb2ecce (patch) | |
tree | 2b7063e255da7a127cd8264ca0f392cccd01e232 /arch | |
parent | 9da3ee9aa8a9c9fcf94188d4c0ae280afbeb63c1 (diff) |
metag: move mm/init.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 mm/init.c into mm/init.c.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/metag/kernel/metag_ksyms.c | 2 | ||||
-rw-r--r-- | arch/metag/mm/init.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/metag/kernel/metag_ksyms.c b/arch/metag/kernel/metag_ksyms.c index 3d60cf31e264..87e47769bfe6 100644 --- a/arch/metag/kernel/metag_ksyms.c +++ b/arch/metag/kernel/metag_ksyms.c | |||
@@ -11,9 +11,7 @@ | |||
11 | 11 | ||
12 | EXPORT_SYMBOL(clear_page); | 12 | EXPORT_SYMBOL(clear_page); |
13 | EXPORT_SYMBOL(copy_page); | 13 | EXPORT_SYMBOL(copy_page); |
14 | EXPORT_SYMBOL(empty_zero_page); | ||
15 | 14 | ||
16 | EXPORT_SYMBOL(pfn_base); | ||
17 | #ifdef CONFIG_FLATMEM | 15 | #ifdef CONFIG_FLATMEM |
18 | /* needed for the pfn_valid macro */ | 16 | /* needed for the pfn_valid macro */ |
19 | EXPORT_SYMBOL(max_pfn); | 17 | EXPORT_SYMBOL(max_pfn); |
diff --git a/arch/metag/mm/init.c b/arch/metag/mm/init.c index 514376d90db4..504a398d5f8b 100644 --- a/arch/metag/mm/init.c +++ b/arch/metag/mm/init.c | |||
@@ -3,6 +3,7 @@ | |||
3 | * | 3 | * |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #include <linux/export.h> | ||
6 | #include <linux/mm.h> | 7 | #include <linux/mm.h> |
7 | #include <linux/swap.h> | 8 | #include <linux/swap.h> |
8 | #include <linux/init.h> | 9 | #include <linux/init.h> |
@@ -25,10 +26,12 @@ | |||
25 | #include <asm/fixmap.h> | 26 | #include <asm/fixmap.h> |
26 | 27 | ||
27 | unsigned long pfn_base; | 28 | unsigned long pfn_base; |
29 | EXPORT_SYMBOL(pfn_base); | ||
28 | 30 | ||
29 | pgd_t swapper_pg_dir[PTRS_PER_PGD] __page_aligned_data; | 31 | pgd_t swapper_pg_dir[PTRS_PER_PGD] __page_aligned_data; |
30 | 32 | ||
31 | unsigned long empty_zero_page; | 33 | unsigned long empty_zero_page; |
34 | EXPORT_SYMBOL(empty_zero_page); | ||
32 | 35 | ||
33 | extern char __user_gateway_start; | 36 | extern char __user_gateway_start; |
34 | extern char __user_gateway_end; | 37 | extern char __user_gateway_end; |