summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/init.c
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2007-07-22 16:44:20 +0200
committerRalf Baechle <ralf@linux-mips.org>2007-07-24 17:02:47 +0200
commitfb4bb133ada7423b2504bb64bb6cc95c079a7d9d (patch)
tree00e5ceabeeeb9a0e678f21489fb690ba18f21c14 /arch/mips/mm/init.c
parent[MIPS] MIPSsim: Fix cflags (diff)
downloadlinux-fb4bb133ada7423b2504bb64bb6cc95c079a7d9d.tar.xz
linux-fb4bb133ada7423b2504bb64bb6cc95c079a7d9d.zip
[MIPS] Mark prom_free_prom_memory as __init_refok
> WARNING: vmlinux.o(.text+0xbf20): Section mismatch: reference to > .init.text:prom_free_prom_memory (between 'free_initmem' and 'copy_from_user_page') prom_free_prom_memory() is called _before_ freeing init sections, so it is false positive. __init_refok can be used for such cases. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm/init.c')
-rw-r--r--arch/mips/mm/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c
index 4c80528deadd..b8cb0dde3af0 100644
--- a/arch/mips/mm/init.c
+++ b/arch/mips/mm/init.c
@@ -484,7 +484,7 @@ void free_initrd_mem(unsigned long start, unsigned long end)
}
#endif
-void free_initmem(void)
+void __init_refok free_initmem(void)
{
prom_free_prom_memory();
free_init_pages("unused kernel memory",