Skip to contentSkip to conversation

2.5.73 doesn't build without CONFIG_VT_CONSOLE

DISCUSSION Peter Cordes 2 participants 2 messages Jul 1, 2003

lore
Share & tools
lore
#0 lore raw

In 2.5.73, vty_init() in drivers/char/vt.c uses console_driver, but that
variable is declared only inside an ifdef CONFIG_VT_CONSOLE. The kernel doesn't build without that config option.

Signature · 6 lines
#define X(x,y) x##y
Peter Cordes ;  e-mail: X([email protected] , s.ca)

"The gods confound the man who first found out how to distinguish the hours!
 Confound him, too, who in this place set up a sundial, to cut and hack
 my day so wretchedly into small pieces!" -- Plautus, 200 BC
#1 lore raw

Try this patch.

vt.c.new renamed from vt.c +1 -3
@@ -109,7 +109,7 @@
 
 #include "console_macros.h"
 
-
+struct tty_driver *console_driver;
 const struct consw *conswitchp;
 
 /* A bitmap for codes <32. A bit of 1 indicates that the code
@@ -2185,8 +2185,6 @@
 quit:
 	clear_bit(0, &printing);
 }
-
-struct tty_driver *console_driver;
 
 static struct tty_driver *vt_console_device(struct console *c, int *index)
 {