tty/n_gsm: fix sparse warning

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>
This commit is contained in:
Lad, Prabhakar 2015-02-04 18:23:59 +00:00 committed by Greg Kroah-Hartman
parent 1083a7be45
commit d3157b2ca5

View File

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