On Tue, Jul 10, 2007 at 02:07:21PM +0100, Maciej W. Rozycki wrote:
> From: "Maciej W. Rozycki" <firstname.lastname@example.org>
> Date: Tue, 10 Jul 2007 14:07:21 +0100 (BST)
> To: email@example.com
> Subject: Re: [MIPS] DEC: Fix modpost warning.
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> On Tue, 10 Jul 2007, firstname.lastname@example.org wrote:
> > LD vmlinux
> > SYSMAP System.map
> > SYSMAP .tmp_System.map
> > MODPOST vmlinux
> > WARNING: drivers/built-in.o(.data+0x2480): Section mismatch: reference to
> > .init.text: (between 'sercons' and 'ds_parms')
> > Signed-off-by: Ralf Baechle <email@example.com>
> > ---
> > drivers/tc/zs.c | 6 +++---
> > 1 files changed, 3 insertions(+), 3 deletions(-)
> It looks like a bogus warning -- I presume it comes from a reference from
> "sercons" to serial_console_setup() -- but the driver is going away, so I
> could not care less...
Yes, the root cause was the reference to serial_console_setup. It's hard
to teach modpost that this reference is bogus so I fixed the driver instead.
Other console drivers had the same issue.