On Tue, 10 Jul 2007 14:04:09 +0100, Ralf Baechle <ralf@xxxxxxxxxxxxxx> 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) && \