From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261510AbVDQUYK (ORCPT ); Sun, 17 Apr 2005 16:24:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261517AbVDQUWv (ORCPT ); Sun, 17 Apr 2005 16:22:51 -0400 Received: from mailout.stusta.mhn.de ([141.84.69.5]:25363 "HELO mailout.stusta.mhn.de") by vger.kernel.org with SMTP id S261510AbVDQUUz (ORCPT ); Sun, 17 Apr 2005 16:20:55 -0400 Date: Sun, 17 Apr 2005 22:20:54 +0200 From: Adrian Bunk To: linux-kernel@vger.kernel.org Subject: [2.6 patch] drivers/char/tty_io.c: make a function static Message-ID: <20050417202054.GS3625@stusta.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This patch makes a needlessly global function static. Signed-off-by: Adrian Bunk --- 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) {