From: Jason Wessel Date: Fri, 2 Jan 2009 13:43:04 +0000 (+0000) Subject: tty: Fix sparse static warning for tty_driver_lookup_tty X-Git-Tag: v2.6.29-rc1~545^2~56 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a47d545f5782cbde871b50bdf4a83379ed2da222;p=linux-2.6-omap-h63xx.git tty: Fix sparse static warning for tty_driver_lookup_tty Fixed sparse warning: drivers/char/tty_io.c:1216:19: warning: symbol 'tty_driver_lookup_tty' was not declared. Should it be static? Signed-off-by: Jason Wessel Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index d8d240c8a25..2a15af65dd1 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c @@ -1211,7 +1211,7 @@ static void tty_line_name(struct tty_driver *driver, int index, char *p) * be held until the 'fast-open' is also done. Will change once we * have refcounting in the driver and per driver locking */ -struct tty_struct *tty_driver_lookup_tty(struct tty_driver *driver, +static struct tty_struct *tty_driver_lookup_tty(struct tty_driver *driver, struct inode *inode, int idx) { struct tty_struct *tty;