Skip to content

Commit

Permalink
metag: move kick.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 kick.c into kick.c

Signed-off-by: James Hogan <james.hogan@imgtec.com>
  • Loading branch information
James Hogan committed Mar 2, 2013
1 parent 9fb4aa8 commit aa29ec5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions arch/metag/kernel/kick.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* the KICK handlers require access to a CPU's pTBI structure. So we
* pass it as an argument.
*/
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/types.h>
Expand All @@ -48,6 +49,7 @@ void kick_register_func(struct kick_irq_handler *kh)

spin_unlock_irqrestore(&kick_handlers_lock, flags);
}
EXPORT_SYMBOL(kick_register_func);

void kick_unregister_func(struct kick_irq_handler *kh)
{
Expand All @@ -59,6 +61,7 @@ void kick_unregister_func(struct kick_irq_handler *kh)

spin_unlock_irqrestore(&kick_handlers_lock, flags);
}
EXPORT_SYMBOL(kick_unregister_func);

TBIRES
kick_handler(TBIRES State, int SigNum, int Triggers, int Inst, PTBI pTBI)
Expand Down
2 changes: 0 additions & 2 deletions arch/metag/kernel/metag_ksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ EXPORT_SYMBOL(__do_clear_user);

EXPORT_SYMBOL(pTBI_get);
EXPORT_SYMBOL(meta_memoffset);
EXPORT_SYMBOL(kick_register_func);
EXPORT_SYMBOL(kick_unregister_func);

EXPORT_SYMBOL(clear_page);
EXPORT_SYMBOL(copy_page);
Expand Down

0 comments on commit aa29ec5

Please sign in to comment.