]> err.no Git - linux-2.6/commitdiff
[MIPS] Fix modpost warning in raw binary builds.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 16 Oct 2007 19:05:18 +0000 (20:05 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 17 Oct 2007 17:28:46 +0000 (18:28 +0100)
  MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0x478): Section mismatch: reference to .init.text:start_kernel (between '_stext' and 'run_init_process')

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/head.S

index e46782b0ebc8cff3c293fecbd5b0f0a5ed8e833c..bf164a562acbe185864a4ed1cc503e1d56546771 100644 (file)
 
 EXPORT(_stext)
 
-#ifndef CONFIG_BOOT_RAW
+#ifdef CONFIG_BOOT_RAW
        /*
         * Give us a fighting chance of running if execution beings at the
         * kernel load address.  This is needed because this platform does
@@ -149,6 +149,8 @@ EXPORT(_stext)
        __INIT
 #endif
 
+       __INIT_REFOK
+
 NESTED(kernel_entry, 16, sp)                   # kernel entry point
 
        kernel_entry_setup                      # cpu specific setup