metag: move kick.c exports out of metag_ksyms.c
authorJames Hogan <james.hogan@imgtec.com>
Wed, 13 Feb 2013 13:01:55 +0000 (13:01 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Sat, 2 Mar 2013 20:11:15 +0000 (20:11 +0000)
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>
arch/metag/kernel/kick.c
arch/metag/kernel/metag_ksyms.c

index c309096..50fcbec 100644 (file)
@@ -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>
@@ -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)
 {
@@ -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)
index 138317c..eef6576 100644 (file)
@@ -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);