Skip to content

Commit

Permalink
metag: move traps.c exports out of metag_ksyms.c
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
James Hogan committed Mar 2, 2013
1 parent fa771d0 commit 9fb4aa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arch/metag/kernel/metag_ksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions arch/metag/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* for more details.
*/

#include <linux/export.h>
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/kernel.h>
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 9fb4aa8

Please sign in to comment.