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

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

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

+3 -5
-5
arch/metag/kernel/metag_ksyms.c
··· 6 6 #include <linux/interrupt.h> 7 7 #include <linux/hardirq.h> 8 8 9 - #include <asm/setup.h> 10 9 #include <asm/checksum.h> 11 10 #include <asm/uaccess.h> 12 - #include <asm/traps.h> 13 11 #include <asm/ftrace.h> 14 12 #include <asm/tbx.h> 15 13 ··· 24 26 EXPORT_SYMBOL(__strncpy_from_user); 25 27 EXPORT_SYMBOL(strnlen_user); 26 28 EXPORT_SYMBOL(__do_clear_user); 27 - 28 - EXPORT_SYMBOL(pTBI_get); 29 - EXPORT_SYMBOL(meta_memoffset); 30 29 31 30 EXPORT_SYMBOL(clear_page); 32 31 EXPORT_SYMBOL(copy_page);
+3
arch/metag/kernel/setup.c
··· 5 5 * 6 6 */ 7 7 8 + #include <linux/export.h> 8 9 #include <linux/bootmem.h> 9 10 #include <linux/console.h> 10 11 #include <linux/cpu.h> ··· 142 141 * probably only be used via them. 143 142 */ 144 143 unsigned int meta_memoffset; 144 + EXPORT_SYMBOL(meta_memoffset); 145 145 146 146 static char __initdata *original_cmd_line; 147 147 ··· 581 579 { 582 580 return per_cpu(pTBI, cpu); 583 581 } 582 + EXPORT_SYMBOL(pTBI_get); 584 583 585 584 #if defined(CONFIG_METAG_DSP) && defined(CONFIG_METAG_FPU) 586 585 char capabilites[] = "dsp fpu";