From: Ralf Baechle <ralf@linux-mips.org>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: linux-mips@linux-mips.org
Subject: Re: [MIPS] Fix modpost warning in raw binary builds.
Date: Mon, 7 Jan 2008 14:58:22 +0000 [thread overview]
Message-ID: <20080107145822.GA14955@linux-mips.org> (raw)
In-Reply-To: <20080106.004834.96687248.anemo@mba.ocn.ne.jp>
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
prev parent reply other threads:[~2008-01-07 14:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080107145822.GA14955@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=anemo@mba.ocn.ne.jp \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox