public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG 2.6.1] missing 'console_driver' with CONFIG_VT but no CONFIG_VT_CONSOLE
@ 2004-01-21 23:31 Jun Sun
  0 siblings, 0 replies; only message in thread
From: Jun Sun @ 2004-01-21 23:31 UTC (permalink / raw)
  To: linux-kernel; +Cc: jsun

[-- Attachment #1: Type: text/plain, Size: 344 bytes --]


See drivers/char/vt.c.

'console_driver' is defined only when CONFIG_VT_CONSOLE is set.
However it is used by vty_init() which is outside the scope
of CONFIG_VT_CONSOLE.

I think the fix is to move console_driver definition outside
CONFIG_VT_CONSOLE.  See the attachment.  Hopefully someone with
more knowledge on this can validate that.

Jun

[-- Attachment #2: junk --]
[-- Type: text/plain, Size: 496 bytes --]

diff -Nru drivers/char/vt.c.orig drivers/char/vt.c
--- drivers/char/vt.c.orig	Wed Nov  5 14:29:51 2003
+++ drivers/char/vt.c	Wed Jan 21 15:27:06 2004
@@ -2086,6 +2086,8 @@
 	schedule_console_callback();
 }
 
+struct tty_driver *console_driver;
+
 #ifdef CONFIG_VT_CONSOLE
 
 /*
@@ -2185,8 +2187,6 @@
 	clear_bit(0, &printing);
 }
 
-struct tty_driver *console_driver;
-
 static struct tty_driver *vt_console_device(struct console *c, int *index)
 {
 	*index = c->index ? c->index-1 : fg_console;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-21 23:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-21 23:31 [BUG 2.6.1] missing 'console_driver' with CONFIG_VT but no CONFIG_VT_CONSOLE Jun Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox