Skip to contentSkip to conversation

fix tty_io.c warning

PATCH New OGAWA Hirofumi 1 participant 1 message Nov 30, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix tty_io.c warning

gcc -D__KERNEL__ -I/devel/src/linux/source/linux-2.5.1-pre4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DEXPORT_SYMTAB -c tty_io.c
tty_io.c: In function `tty_init':
tty_io.c:2322: warning: implicit declaration of function `console_map_init'

The following patch fix the above warning. Please apply.

Signature · 23 lines
OGAWA Hirofumi <[email protected]>

--- linux-2.5.1-pre4.orig/drivers/char/tty_io.c	Fri Nov 30 12:24:28 2001
+++ linux-2.5.1-pre4/drivers/char/tty_io.c	Fri Nov 30 13:01:04 2001
@@ -102,10 +102,6 @@
 
 #include <linux/kmod.h>
 
-#ifdef CONFIG_VT
-extern void con_init_devfs (void);
-#endif
-
 #define CONSOLE_DEV MKDEV(TTY_MAJOR,0)
 #define TTY_DEV MKDEV(TTYAUX_MAJOR,0)
 #define SYSCONS_DEV MKDEV(TTYAUX_MAJOR,1)
@@ -2246,6 +2242,8 @@
 static struct tty_driver dev_ptmx_driver;
 #endif
 #ifdef CONFIG_VT
+extern void con_init_devfs (void);
+extern void console_map_init(void);
 static struct tty_driver dev_console_driver;
 #endif