[PATCH] fix tty_io.c warning

From: OGAWA Hirofumi (hirofumi@mail.parknet.co.jp)
Date: Thu Nov 29 2001 - 23:45:53 EST


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.

-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

--- 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Nov 30 2001 - 21:00:36 EST