From: Gustavo A. R. Silva Date: Mon, 27 Mar 2017 06:37:29 +0000 (-0500) Subject: staging: speakup: fix warning for static declaration X-Git-Tag: Ubuntu-5.2.0-15.16~6936^2~351 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a15505e69cd2f8d0ebf566cd5c5838bd5c2d56e3;p=mirror_ubuntu-eoan-kernel.git staging: speakup: fix warning for static declaration Fix the following sparse warning: symbol 'spk_serial_out' was not declared. Should it be static? Signed-off-by: Gustavo A. R. Silva Reviewed-by: Samuel Thibault Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/speakup/serialio.c b/drivers/staging/speakup/serialio.c index 5e31acac19de..3fab1c377a80 100644 --- a/drivers/staging/speakup/serialio.c +++ b/drivers/staging/speakup/serialio.c @@ -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);