From: Lad, Prabhakar Date: Wed, 4 Feb 2015 18:23:59 +0000 (+0000) Subject: tty/n_gsm: fix sparse warning X-Git-Tag: v4.1-rc1~61^2~67 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d3157b2ca59ceb9ad1b72cad09535a343f315667;p=karo-tx-linux.git 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 Acked-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index c4343764cc5b..9546b64a7b90 100644 --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c @@ -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",