lkml.org 
[lkml]   [2005]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.6 patch] drivers/char/tty_io.c: make a function static
This patch makes a needlessly global function static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

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@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-04-17 22:30    [W:0.031 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site