]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
tty/n_gsm: fix sparse warning
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Wed, 4 Feb 2015 18:23:59 +0000 (18:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 15:10:10 +0000 (16:10 +0100)
this patch fixes following sparse warning:

n_gsm.c:2827:22: warning: symbol 'tty_ldisc_packet' was not declared. Should it be static?

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c

index c4343764cc5b7c527b85278013c3cbbb62f1cbd8..9546b64a7b90fc8e315622db2c2c62f4167ae4c4 100644 (file)
@@ -2824,7 +2824,7 @@ static int gsm_create_network(struct gsm_dlci *dlci, struct gsm_netconfig *nc)
 }
 
 /* Line discipline for real tty */
-struct tty_ldisc_ops tty_ldisc_packet = {
+static struct tty_ldisc_ops tty_ldisc_packet = {
        .owner           = THIS_MODULE,
        .magic           = TTY_LDISC_MAGIC,
        .name            = "n_gsm",