Skip to contentSkip to conversation

drivers/char/tty_io.c: make a function static

PATCH New Adrian Bunk 1 participant 1 message Apr 17, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/char/tty_io.c: make a function static

This patch makes a needlessly global function static.

---

 drivers/char/tty_io.c |    5 +++--
 include/linux/tty.h   |    2 --
 2 files changed, 3 insertions(+), 4 deletions(-)
include/linux/tty.h renamed from include/linux/tty.h.old +0 -2
@@ -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);
drivers/char/tty_io.c renamed from drivers/char/tty_io.c.old +3 -2
@@ -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) {