From: James Hogan Date: Wed, 13 Feb 2013 12:55:51 +0000 (+0000) Subject: metag: move setup.c exports out of metag_ksyms.c X-Git-Tag: v3.9-rc1~7^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7293dbed9d8be1916034dbfcf2f203e96bd8fae1;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 --- diff --git a/arch/metag/kernel/metag_ksyms.c b/arch/metag/kernel/metag_ksyms.c index eef6576..8ce3c3d 100644 --- a/arch/metag/kernel/metag_ksyms.c +++ b/arch/metag/kernel/metag_ksyms.c @@ -6,10 +6,8 @@ #include #include -#include #include #include -#include #include #include @@ -27,9 +25,6 @@ EXPORT_SYMBOL(__strncpy_from_user); EXPORT_SYMBOL(strnlen_user); EXPORT_SYMBOL(__do_clear_user); -EXPORT_SYMBOL(pTBI_get); -EXPORT_SYMBOL(meta_memoffset); - EXPORT_SYMBOL(clear_page); EXPORT_SYMBOL(copy_page); EXPORT_SYMBOL(empty_zero_page); diff --git a/arch/metag/kernel/setup.c b/arch/metag/kernel/setup.c index 9803ca4..dd6c5ad 100644 --- a/arch/metag/kernel/setup.c +++ b/arch/metag/kernel/setup.c @@ -5,6 +5,7 @@ * */ +#include #include #include #include @@ -141,6 +142,7 @@ u8 hwthread_id_2_cpu[4] __read_mostly = { * probably only be used via them. */ unsigned int meta_memoffset; +EXPORT_SYMBOL(meta_memoffset); static char __initdata *original_cmd_line; @@ -579,6 +581,7 @@ PTBI pTBI_get(unsigned int cpu) { return per_cpu(pTBI, cpu); } +EXPORT_SYMBOL(pTBI_get); #if defined(CONFIG_METAG_DSP) && defined(CONFIG_METAG_FPU) char capabilites[] = "dsp fpu";