From: James Hogan Date: Wed, 13 Feb 2013 12:19:03 +0000 (+0000) Subject: metag: move traps.c exports out of metag_ksyms.c X-Git-Tag: firefly_0821_release~3680^2~960^2~8 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9fb4aa8723f6b332ee3089dc59c9ff7dcf2c0d47;p=firefly-linux-kernel-4.4.55.git metag: move traps.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 traps.c into traps.c Signed-off-by: James Hogan --- diff --git a/arch/metag/kernel/metag_ksyms.c b/arch/metag/kernel/metag_ksyms.c index 63606f8aa86a..138317cfb518 100644 --- a/arch/metag/kernel/metag_ksyms.c +++ b/arch/metag/kernel/metag_ksyms.c @@ -31,11 +31,6 @@ EXPORT_SYMBOL(pTBI_get); EXPORT_SYMBOL(meta_memoffset); EXPORT_SYMBOL(kick_register_func); EXPORT_SYMBOL(kick_unregister_func); -#ifdef CONFIG_SMP -EXPORT_SYMBOL(get_trigger_mask); -#else -EXPORT_SYMBOL(global_trigger_mask); -#endif EXPORT_SYMBOL(clear_page); EXPORT_SYMBOL(copy_page); diff --git a/arch/metag/kernel/traps.c b/arch/metag/kernel/traps.c index 202be405771e..5cad15601cff 100644 --- a/arch/metag/kernel/traps.c +++ b/arch/metag/kernel/traps.c @@ -8,6 +8,7 @@ * for more details. */ +#include #include #include #include @@ -59,6 +60,7 @@ DECLARE_PER_CPU(PTBI, pTBI); static DEFINE_PER_CPU(unsigned int, trigger_mask); #else unsigned int global_trigger_mask; +EXPORT_SYMBOL(global_trigger_mask); #endif unsigned long per_cpu__stack_save[NR_CPUS]; @@ -787,6 +789,7 @@ unsigned int get_trigger_mask(void) { return _get_trigger_mask(); } +EXPORT_SYMBOL(get_trigger_mask); static void set_trigger_mask(unsigned int mask) {