]> err.no Git - linux-2.6/commitdiff
[MIPS] Mark prom_free_prom_memory as __init_refok
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Sun, 22 Jul 2007 14:44:20 +0000 (23:44 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 24 Jul 2007 15:02:47 +0000 (16:02 +0100)
> 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>
arch/mips/mm/init.c

index 4c80528deadd2c39433af6a5bc905fbe6313459d..b8cb0dde3af024f259d72194f2211cfa778c12c5 100644 (file)
@@ -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",