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

Signed-off-by: James Hogan <james.hogan@imgtec.com>
arch/metag/kernel/metag_ksyms.c
arch/metag/mm/init.c

index 3d60cf31e264d6a950ba7eead08c331733a3e56a..87e47769bfe676fd464720270e0ed06405906adb 100644 (file)
@@ -11,9 +11,7 @@
 
 EXPORT_SYMBOL(clear_page);
 EXPORT_SYMBOL(copy_page);
-EXPORT_SYMBOL(empty_zero_page);
 
-EXPORT_SYMBOL(pfn_base);
 #ifdef CONFIG_FLATMEM
 /* needed for the pfn_valid macro */
 EXPORT_SYMBOL(max_pfn);
index 514376d90db4442ba4276b99d0dd48751e68ba97..504a398d5f8be5e6e9174f6795c2de552709029e 100644 (file)
@@ -3,6 +3,7 @@
  *
  */
 
+#include <linux/export.h>
 #include <linux/mm.h>
 #include <linux/swap.h>
 #include <linux/init.h>
 #include <asm/fixmap.h>
 
 unsigned long pfn_base;
+EXPORT_SYMBOL(pfn_base);
 
 pgd_t swapper_pg_dir[PTRS_PER_PGD] __page_aligned_data;
 
 unsigned long empty_zero_page;
+EXPORT_SYMBOL(empty_zero_page);
 
 extern char __user_gateway_start;
 extern char __user_gateway_end;