summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc
diff options
context:
space:
mode:
authorBenoit Hiller <benoit.hiller@gmail.com>2016-10-08 15:49:55 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-16 10:25:05 +0200
commit2e41eb96f99a81e1b941812c7cd767c81d7d7d75 (patch)
tree6932a5a70109cfb073cc0690e90166e5bd64059e /drivers/staging/dgnc
parent6d2117f1a51005a2fa2be65a6e0b9ba82ba564a5 (diff)
downloadlinux-stable-2e41eb96f99a81e1b941812c7cd767c81d7d7d75.tar.gz
linux-stable-2e41eb96f99a81e1b941812c7cd767c81d7d7d75.tar.bz2
linux-stable-2e41eb96f99a81e1b941812c7cd767c81d7d7d75.zip
staging: dgnc: make find_board_by_major static
Fixes the following sparse warning: drivers/staging/dgnc/dgnc_tty.c:933:19: warning: symbol 'find_board_by_major' was not declared. Should it be static? Signed-off-by: Benoit Hiller <benoit.hiller@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r--drivers/staging/dgnc/dgnc_tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index 953d9310fa74..ef9a45bc0b89 100644
--- a/drivers/staging/dgnc/dgnc_tty.c
+++ b/drivers/staging/dgnc/dgnc_tty.c
@@ -930,7 +930,7 @@ void dgnc_wakeup_writes(struct channel_t *ch)
spin_unlock_irqrestore(&ch->ch_lock, flags);
}
-struct dgnc_board *find_board_by_major(unsigned int major)
+static struct dgnc_board *find_board_by_major(unsigned int major)
{
int i;