Skip to content

Commit ce73724

Browse files
Colin Ian Kinggregkh
authored andcommitted
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: Colin Ian King <colin.king@canonical.com> Reviewed-by: Okash Khawaja <okash.khawaja@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a9cbe2a commit ce73724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/speakup/spk_ttyio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct spk_ldisc_data {
2121
static struct spk_synth *spk_ttyio_synth;
2222
static struct tty_struct *speakup_tty;
2323

24-
int ser_to_dev(int ser, dev_t *dev_no)
24+
static int ser_to_dev(int ser, dev_t *dev_no)
2525
{
2626
if (ser < 0 || ser > (255 - 64)) {
2727
pr_err("speakup: Invalid ser param. Must be between 0 and 191 inclusive.\n");

0 commit comments

Comments
 (0)