undefined reference to `console_list'

From: Ladislav Michl
Date: Tue Dec 16 2003 - 08:42:51 EST


Hi,

patch-2.1.71 brought posibility to pass list of consoles on kernel
command line.
http://www.funet.fi/pub/Linux/PEOPLE/Linus/v2.1/patch-html/patch-2.1.71/linux_kernel_printk.c.html
http://www.funet.fi/pub/Linux/PEOPLE/Linus/v2.1/patch-html/patch-2.1.71/linux_include_linux_console.h.html

while kernel/printk.c defines
struct console_cmdline console_cmdline[MAX_CMDLINECONSOLES];
include/linux/console.h reads
extern struct console_cmdline console_list[MAX_CMDLINECONSOLES];

nothing needs fix below at the moment, but to finish MIPS merge it is
needed either export console_setup(char *) or use fix below and this patch
ftp://ftp.linux-mips.org/pub/linux/mips/people/ladis/ip22-setup.diff
but header should be fixed anyway.

--- linux-mips-2.4/include/linux/console.h.orig 2003-12-16 13:52:59.000000000 +0100
+++ linux-mips-2.4/include/linux/console.h 2003-12-16 13:53:10.000000000 +0100
@@ -80,7 +80,7 @@
char *options; /* Options for the driver */
};
#define MAX_CMDLINECONSOLES 8
-extern struct console_cmdline console_list[MAX_CMDLINECONSOLES];
+extern struct console_cmdline console_cmdline[MAX_CMDLINECONSOLES];

/*
* The interface for a console, or any other device that

regards,
ladis

ps: please cc me, I'm not on the list
-
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/