All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [MIPS] Fix modpost warning in raw binary builds.
       [not found] <S20039888AbXJPTFk/20071016190540Z+81757@ftp.linux-mips.org>
@ 2008-01-05 15:48 ` Atsushi Nemoto
  2008-01-07 14:58   ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2008-01-05 15:48 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

On Tue, 16 Oct 2007 20:05:35 +0100, linux-mips@linux-mips.org wrote:
> Author: Ralf Baechle <ralf@linux-mips.org> Tue Oct 16 20:05:18 2007 +0100
> Commit: 017e3a492683b32d17dcd1b13b279745cc656073
> Gitweb: http://www.linux-mips.org/g/linux/017e3a49
> Branch: master
> 
>   MODPOST vmlinux.o
> WARNING: vmlinux.o(.text+0x478): Section mismatch: reference to .init.text:start_kernel (between '_stext' and 'run_init_process')

This commit should break CONFIG_BOOT_RAW.  Since I do not have any
good idea to avoid this warning, reverting this commit would be the
best for now.  The warning is just a false positive anyway.

---
Atsushi Nemoto

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [MIPS] Fix modpost warning in raw binary builds.
  2008-01-05 15:48 ` [MIPS] Fix modpost warning in raw binary builds Atsushi Nemoto
@ 2008-01-07 14:58   ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2008-01-07 14:58 UTC (permalink / raw)
  To: Atsushi Nemoto; +Cc: linux-mips

On Sun, Jan 06, 2008 at 12:48:34AM +0900, Atsushi Nemoto wrote:

> > 
> >   MODPOST vmlinux.o
> > WARNING: vmlinux.o(.text+0x478): Section mismatch: reference to .init.text:start_kernel (between '_stext' and 'run_init_process')
> 
> This commit should break CONFIG_BOOT_RAW.  Since I do not have any
> good idea to avoid this warning, reverting this commit would be the
> best for now.  The warning is just a false positive anyway.

But a somewhat nervragging one and it'd be easy to fix now that
__INIT_REFOK is in the kernel, something like the below patch should do
the trick.

  Ralf

diff --git a/arch/mips/kernel/head.S b/arch/mips/kernel/head.S
index 2367687..50be56c 100644
--- a/arch/mips/kernel/head.S
+++ b/arch/mips/kernel/head.S
@@ -136,7 +136,8 @@ EXPORT(_stext)
 	 * kernel load address.  This is needed because this platform does
 	 * not have a ELF loader yet.
 	 */
-	__INIT
+FEXPORT(__kernel_entry)
+	j	kernel_entry
 #endif
 
 	__INIT_REFOK

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-07 14:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <S20039888AbXJPTFk/20071016190540Z+81757@ftp.linux-mips.org>
2008-01-05 15:48 ` [MIPS] Fix modpost warning in raw binary builds Atsushi Nemoto
2008-01-07 14:58   ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.