提交 ce73724d 编写于 作者: C Colin Ian King 提交者: Greg Kroah-Hartman

staging: speakup: make function ser_to_dev static

The helper function ser_to_dev does not need to be in global scope, so
make it static.

Cleans up sparse warning:
"warning: symbol 'ser_to_dev' was not declared. Should it be static?"
Signed-off-by: NColin Ian King <colin.king@canonical.com>
Reviewed-by: NOkash Khawaja <okash.khawaja@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 a9cbe2ad
...@@ -21,7 +21,7 @@ struct spk_ldisc_data { ...@@ -21,7 +21,7 @@ struct spk_ldisc_data {
static struct spk_synth *spk_ttyio_synth; static struct spk_synth *spk_ttyio_synth;
static struct tty_struct *speakup_tty; static struct tty_struct *speakup_tty;
int ser_to_dev(int ser, dev_t *dev_no) static int ser_to_dev(int ser, dev_t *dev_no)
{ {
if (ser < 0 || ser > (255 - 64)) { if (ser < 0 || ser > (255 - 64)) {
pr_err("speakup: Invalid ser param. Must be between 0 and 191 inclusive.\n"); pr_err("speakup: Invalid ser param. Must be between 0 and 191 inclusive.\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册