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

From: Adrian Bunk (bunk_at_stusta.de)
Date: 04/30/05

  • Next message: Adrian Bunk: "[2.6 patch] drivers/char/istallion.c: remove an unneeded variable"
    Date:	Sat, 30 Apr 2005 22:08:27 +0200
    To: Andrew Morton <akpm@osdl.org>
    
    

    This patch makes a needlessly global function static.

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

    ---
    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 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/
    

  • Next message: Adrian Bunk: "[2.6 patch] drivers/char/istallion.c: remove an unneeded variable"
  • Quantcast