Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: James Hogan <james.hogan@imgtec.com>

+3 -2
+3
arch/metag/kernel/kick.c
··· 25 25 * the KICK handlers require access to a CPU's pTBI structure. So we 26 26 * pass it as an argument. 27 27 */ 28 + #include <linux/export.h> 28 29 #include <linux/kernel.h> 29 30 #include <linux/mm.h> 30 31 #include <linux/types.h> ··· 49 48 50 49 spin_unlock_irqrestore(&kick_handlers_lock, flags); 51 50 } 51 + EXPORT_SYMBOL(kick_register_func); 52 52 53 53 void kick_unregister_func(struct kick_irq_handler *kh) 54 54 { ··· 61 59 62 60 spin_unlock_irqrestore(&kick_handlers_lock, flags); 63 61 } 62 + EXPORT_SYMBOL(kick_unregister_func); 64 63 65 64 TBIRES 66 65 kick_handler(TBIRES State, int SigNum, int Triggers, int Inst, PTBI pTBI)
-2
arch/metag/kernel/metag_ksyms.c
··· 29 29 30 30 EXPORT_SYMBOL(pTBI_get); 31 31 EXPORT_SYMBOL(meta_memoffset); 32 - EXPORT_SYMBOL(kick_register_func); 33 - EXPORT_SYMBOL(kick_unregister_func); 34 32 35 33 EXPORT_SYMBOL(clear_page); 36 34 EXPORT_SYMBOL(copy_page);