[Top] [All Lists]

Re: [MIPS] Fix modpost warning in raw binary builds.

To: Atsushi Nemoto <>
Subject: Re: [MIPS] Fix modpost warning in raw binary builds.
From: Ralf Baechle <>
Date: Mon, 7 Jan 2008 14:58:22 +0000
In-reply-to: <>
Original-recipient: rfc822;
References: <S20039888AbXJPTFk/> <>
User-agent: Mutt/1.5.17 (2007-11-01)
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.


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
+       j       kernel_entry

<Prev in Thread] Current Thread [Next in Thread>