[2.6 patch] drivers/char/tty_io.c: make a function static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch makes a needlessly global function static.

Signed-off-by: Adrian Bunk <[email protected]>

---

This patch was already sent on:
- 17 Apr 2005

 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux