Fixes sparse warnings: warning: symbol 'xxx' was not declared. Should it be static? Signed-off-by: Simon Sandström <simon@xxxxxxxxxx> --- drivers/staging/bcm2835-audio/bcm2835-vchiq.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/bcm2835-audio/bcm2835-vchiq.c index 9ac1f72a178e..fcff1002adc9 100644 --- a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c +++ b/drivers/staging/bcm2835-audio/bcm2835-vchiq.c @@ -65,7 +65,7 @@ struct bcm2835_audio_instance { short peer_version; }; -bool force_bulk = false; +static bool force_bulk; /* ---- Private Variables ---------------------------------------------------- */ @@ -195,13 +195,13 @@ int bcm2835_audio_write(struct bcm2835_alsa_stream *alsa_stream, return ret; } -void my_workqueue_init(struct bcm2835_alsa_stream *alsa_stream) +static void my_workqueue_init(struct bcm2835_alsa_stream *alsa_stream) { alsa_stream->my_wq = alloc_workqueue("my_queue", WQ_HIGHPRI, 1); return; } -void my_workqueue_quit(struct bcm2835_alsa_stream *alsa_stream) +static void my_workqueue_quit(struct bcm2835_alsa_stream *alsa_stream) { if (alsa_stream->my_wq) { flush_workqueue(alsa_stream->my_wq); @@ -782,8 +782,8 @@ int bcm2835_audio_close(struct bcm2835_alsa_stream *alsa_stream) return ret; } -int bcm2835_audio_write_worker(struct bcm2835_alsa_stream *alsa_stream, - unsigned int count, void *src) +static int bcm2835_audio_write_worker(struct bcm2835_alsa_stream *alsa_stream, + unsigned int count, void *src) { struct vc_audio_msg m; struct bcm2835_audio_instance *instance = alsa_stream->instance; -- 2.11.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel