lkml.org 
[lkml]   [2001]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] fix tty_io.c warning
From
Date
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/
\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.026 / U:3.860 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site