浏览代码

[MIPS] Fix modpost warning in raw binary builds.

  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>
Ralf Baechle 18 年之前
父节点
当前提交
396a2ae08e
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      arch/mips/kernel/head.S

+ 3 - 1
arch/mips/kernel/head.S

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