Re: Warning about init section reference in start_kernel(2.6.23-rc4-mm1)

From: Randy Dunlap
Date: Thu Sep 06 2007 - 16:19:17 EST


On Thu, 6 Sep 2007 15:46:32 -0400 Mathieu Desnoyers wrote:

> Hi Peter,
>
> I have seen the following warning on the recent -mm kernels when
> compiling a i386 kernel:
>
> scripts/mod/modpost -o /home/compudj/git/morestable/linux-2.6-lttng/Module.symvers vmlinux.o
> WARNING: vmlinux.o(.text.head+0x223): Section mismatch: reference to .init.text.1:start_kernel (between 'is386' and 'check_x87')
>
> It looks like head.S jumps to start_kernel at the end of is386. Is this
> ok and valid ? If yes, then I guess modpost should be updated.

[added Sam]

This has come up several times. Yes, it's OK.

If we could add __init_refok to is386 in head.S, this problem would
be fixed, but afaik we cannot do that.
Or modpost could have special knowledge of this one quirk, but that's
not desirable either.


---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/