Skip to contentSkip to conversation

proper prototype for vty_init()

PATCH New Adrian Bunk 1 participant 1 message Nov 5, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proper prototype for vty_init()

This patch adds a proper prototype for vty_init() in include/linux/vt_kern.h

---

 drivers/char/tty_io.c   |    4 ----
 include/linux/vt_kern.h |    1 +
 2 files changed, 1 insertion(+), 4 deletions(-)

e2bf6097115923c07a04b4791f8abecf3b14c709

drivers/char/tty_io.c +0 -4
index f36fecd..c927f42 100644
@@ -4048,10 +4048,6 @@ void __init console_init(void)
 	}
 }
 
-#ifdef CONFIG_VT
-extern int vty_init(void);
-#endif
-
 static int __init tty_class_init(void)
 {
 	tty_class = class_create(THIS_MODULE, "tty");
include/linux/vt_kern.h +1 -0
index feb5e99..9448ffb 100644
@@ -77,6 +77,7 @@ void change_console(struct vc_data *new_vc);
 void reset_vc(struct vc_data *vc);
 extern int unbind_con_driver(const struct consw *csw, int first, int last,
 			     int deflt);
+int vty_init(void);
 
 /*
  * vc_screen.c shares this temporary buffer with the console write code so that