2003-07-01 19:38:19

by Peter Cordes

[permalink] [raw]
Subject: 2.5.73 doesn't build without CONFIG_VT_CONSOLE


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.

--
#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


2003-07-01 21:17:33

by James Simmons

[permalink] [raw]
Subject: Re: 2.5.73 doesn't build without CONFIG_VT_CONSOLE


Try this patch.

--- vt.c Tue Jul 1 14:19:07 2003
+++ vt.c.new Tue Jul 1 14:03:17 2003
@@ -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)
{