linux-mips
[Top] [All Lists]

Re: [MIPS] DEC: Fix modpost warning.

To: ralf@linux-mips.org
Subject: Re: [MIPS] DEC: Fix modpost warning.
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Tue, 10 Jul 2007 23:10:41 +0900 (JST)
Cc: macro@linux-mips.org, linux-mips@linux-mips.org
In-reply-to: <20070710130409.GA14723@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <S20022577AbXGJLug/20070710115036Z+13637@ftp.linux-mips.org> <Pine.LNX.4.64N.0707101401001.18036@blysk.ds.pg.gda.pl> <20070710130409.GA14723@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
On Tue, 10 Jul 2007 14:04:09 +0100, Ralf Baechle <ralf@linux-mips.org> wrote:
> 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.

The modpost has "_console" name in its whitelist.  So minimum
workaround would be something like this:

--- a/drivers/tc/zs.c
+++ b/drivers/tc/zs.c
@@ -136,6 +136,7 @@ struct dec_serial *zs_chain;        /* list of all channels 
*/
 struct tty_struct zs_ttys[NUM_CHANNELS];
 
 #ifdef CONFIG_SERIAL_DEC_CONSOLE
+#define sercons ser_console
 static struct console sercons;
 #endif
 #if defined(CONFIG_SERIAL_DEC_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) && \

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