Re: [PATCH 2/2] drivers: tty: Mark the function hvc_poll_init() as static in hvc_console.c
From: Josh Triplett <josh@joshtriplett.org>
Date: 2013-12-16 11:11:22
Also in:
lkml
From: Josh Triplett <josh@joshtriplett.org>
Date: 2013-12-16 11:11:22
Also in:
lkml
On Mon, Dec 16, 2013 at 04:31:28PM +0530, Rashika Kheria wrote:
Mark the function hvc_poll_init() as static in hvc/hvc_console.c becaus=
e
it is not used outside this file. =20 This eliminates the following warning in hvc/hvc_console.c: drivers/tty/hvc/hvc_console.c:791:5: warning: no previous prototype for=
=E2=80=98hvc_poll_init=E2=80=99 [-Wmissing-prototypes]
=20 Signed-off-by: Rashika Kheria <redacted>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
drivers/tty/hvc/hvc_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) =20diff --git a/drivers/tty/hvc/hvc_console.c b/drivers/tty/hvc/hvc_consol=
e.c
index 9eba119..50b4688 100644--- a/drivers/tty/hvc/hvc_console.c +++ b/drivers/tty/hvc/hvc_console.c@@ -788,7 +788,7 @@ static int hvc_tiocmset(struct tty_struct *tty, }=20 #ifdef CONFIG_CONSOLE_POLL -int hvc_poll_init(struct tty_driver *driver, int line, char *options) +static int hvc_poll_init(struct tty_driver *driver, int line, char *op=
tions)
{
return 0;
}
--=20
1.7.9.5
=20