aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2013-02-13 07:19:03 -0500
committerJames Hogan <james.hogan@imgtec.com>2013-03-02 15:11:14 -0500
commit9fb4aa8723f6b332ee3089dc59c9ff7dcf2c0d47 (patch)
tree2c69f2ed034ca57ab8f172f75fe6c8659f9cdf62 /arch
parentfa771d029af8f8a23089c97b6ab6a5745e98ad7e (diff)
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 <james.hogan@imgtec.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/metag/kernel/metag_ksyms.c5
-rw-r--r--arch/metag/kernel/traps.c3
2 files changed, 3 insertions, 5 deletions
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);
31EXPORT_SYMBOL(meta_memoffset); 31EXPORT_SYMBOL(meta_memoffset);
32EXPORT_SYMBOL(kick_register_func); 32EXPORT_SYMBOL(kick_register_func);
33EXPORT_SYMBOL(kick_unregister_func); 33EXPORT_SYMBOL(kick_unregister_func);
34#ifdef CONFIG_SMP
35EXPORT_SYMBOL(get_trigger_mask);
36#else
37EXPORT_SYMBOL(global_trigger_mask);
38#endif
39 34
40EXPORT_SYMBOL(clear_page); 35EXPORT_SYMBOL(clear_page);
41EXPORT_SYMBOL(copy_page); 36EXPORT_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 @@
8 * for more details. 8 * for more details.
9 */ 9 */
10 10
11#include <linux/export.h>
11#include <linux/sched.h> 12#include <linux/sched.h>
12#include <linux/signal.h> 13#include <linux/signal.h>
13#include <linux/kernel.h> 14#include <linux/kernel.h>
@@ -59,6 +60,7 @@ DECLARE_PER_CPU(PTBI, pTBI);
59static DEFINE_PER_CPU(unsigned int, trigger_mask); 60static DEFINE_PER_CPU(unsigned int, trigger_mask);
60#else 61#else
61unsigned int global_trigger_mask; 62unsigned int global_trigger_mask;
63EXPORT_SYMBOL(global_trigger_mask);
62#endif 64#endif
63 65
64unsigned long per_cpu__stack_save[NR_CPUS]; 66unsigned long per_cpu__stack_save[NR_CPUS];
@@ -787,6 +789,7 @@ unsigned int get_trigger_mask(void)
787{ 789{
788 return _get_trigger_mask(); 790 return _get_trigger_mask();
789} 791}
792EXPORT_SYMBOL(get_trigger_mask);
790 793
791static void set_trigger_mask(unsigned int mask) 794static void set_trigger_mask(unsigned int mask)
792{ 795{