Skip to contentSkip to conversation

make drivers/char/vt.c compile without CONFIG_VT_CONSOLE

PATCH New Julien BLACHE 1 participant 1 message Dec 22, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make drivers/char/vt.c compile without CONFIG_VT_CONSOLE

Hi,

In drivers/char/vt.c, console_driver is defined inside an #ifdef CONFIG_VT_CONSOLE, which makes it impossible to build a 2.6 kernel without CONFIG_VT_CONSOLE.

I think this wasn't intended, so the attached patch moves the declaration of console_driver above the #ifdef. There may be a more appropriate place, so put it elsewhere if you feel like it :)

JB.

Signature · 2 lines
Julien BLACHE                                   <http://www.jblache.org> 
<[email protected]>                                  GPG KeyID 0xF5D65169

Index: vt.c
===================================================================
RCS file: /home/cvs/linux/drivers/char/vt.c,v
retrieving revision 1.55

vt.c +2 -2
diff -u -r1.55 vt.c
@@ -2086,6 +2086,8 @@
 	schedule_console_callback();
 }
 
+struct tty_driver *console_driver;
+
 #ifdef CONFIG_VT_CONSOLE
 
 /*
@@ -2184,8 +2186,6 @@
 quit:
 	clear_bit(0, &printing);
 }
-
-struct tty_driver *console_driver;
 
 static struct tty_driver *vt_console_device(struct console *c, int *index)
 {