[2.6 patch] drivers/char/tty_io.c: make a function static
From: Adrian Bunk
Date: Sun Apr 17 2005 - 15:28:28 EST
This patch makes a needlessly global function static.
Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>
---
drivers/char/tty_io.c | 5 +++--
include/linux/tty.h | 2 --
2 files changed, 3 insertions(+), 4 deletions(-)
--- linux-2.6.12-rc2-mm3-full/include/linux/tty.h.old 2005-04-17 18:30:17.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/include/linux/tty.h 2005-04-17 18:30:24.000000000 +0200
@@ -337,8 +337,6 @@
extern void console_init(void);
extern int vcs_init(void);
-extern int tty_paranoia_check(struct tty_struct *tty, struct inode *inode,
- const char *routine);
extern char *tty_name(struct tty_struct *tty, char *buf);
extern void tty_wait_until_sent(struct tty_struct * tty, long timeout);
extern int tty_check_change(struct tty_struct * tty);
--- linux-2.6.12-rc2-mm3-full/drivers/char/tty_io.c.old 2005-04-17 18:30:32.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/drivers/char/tty_io.c 2005-04-17 18:30:51.000000000 +0200
@@ -186,8 +186,9 @@
EXPORT_SYMBOL(tty_name);
-inline int tty_paranoia_check(struct tty_struct *tty, struct inode *inode,
- const char *routine)
+static inline int tty_paranoia_check(struct tty_struct *tty,
+ struct inode *inode,
+ const char *routine)
{
#ifdef TTY_PARANOIA_CHECK
if (!tty) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/