drivers: tty: Mark the function hvc_poll_init() as static in hvc_console.c
authorRashika Kheria <rashika.kheria@gmail.com>
Mon, 16 Dec 2013 11:01:28 +0000 (16:31 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2013 17:37:44 +0000 (09:37 -0800)
Mark the function hvc_poll_init() as static in hvc/hvc_console.c because
it is not used outside this file.

This eliminates the following warning in hvc/hvc_console.c:
drivers/tty/hvc/hvc_console.c:791:5: warning: no previous prototype for ‘hvc_poll_init’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_console.c

index 9eba119bcdd3488d7d7541448a2371497c4d70f4..50b46881b6ca7bf648fe2f8b73b6782b8c1306cd 100644 (file)
@@ -788,7 +788,7 @@ static int hvc_tiocmset(struct tty_struct *tty,
 }
 
 #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 *options)
 {
        return 0;
 }
This page took 0.047819 seconds and 5 git commands to generate.