staging: speakup: fix warning for static declaration
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 27 Mar 2017 06:37:29 +0000 (01:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Mar 2017 11:49:22 +0000 (13:49 +0200)
Fix the following sparse warning:
symbol 'spk_serial_out' was not declared. Should it be static?

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/serialio.c

index 5e31acac19de293b2c8574005b7444c7f9a7a294..3fab1c377a803b294995f72d4a9d65582f39d22f 100644 (file)
@@ -243,7 +243,7 @@ unsigned char spk_serial_in_nowait(void)
 }
 EXPORT_SYMBOL_GPL(spk_serial_in_nowait);
 
-int spk_serial_out(struct spk_synth *in_synth, const char ch)
+static int spk_serial_out(struct spk_synth *in_synth, const char ch)
 {
        if (in_synth->alive && spk_wait_for_xmitr(in_synth)) {
                outb_p(ch, speakup_info.port_tts);