From 04ad3a644e4040a68054a0f97bda27972444ea89 Mon Sep 17 00:00:00 2001 From: Ebru Akagunduz Date: Wed, 5 Mar 2014 19:15:29 +0200 Subject: [PATCH] Staging:media: Fix Sparse Warnings "symbol was not declared. Should it be static?" This patch fixes the Sparse Warnings "symbol was not declared. Should it be static?" Signed-off-by: Ebru Akagunduz Signed-off-by: Greg Kroah-Hartman --- drivers/staging/media/go7007/go7007-loader.c | 2 +- drivers/staging/media/lirc/lirc_parallel.c | 26 +++++++++---------- .../staging/media/solo6x10/solo6x10-core.c | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/media/go7007/go7007-loader.c b/drivers/staging/media/go7007/go7007-loader.c index eecb1f2a5574..491d0e697f5a 100644 --- a/drivers/staging/media/go7007/go7007-loader.c +++ b/drivers/staging/media/go7007/go7007-loader.c @@ -28,7 +28,7 @@ struct fw_config { const char * const fw_name2; }; -struct fw_config fw_configs[] = { +static struct fw_config fw_configs[] = { { 0x1943, 0xa250, "go7007/s2250-1.fw", "go7007/s2250-2.fw" }, { 0x093b, 0xa002, "go7007/px-m402u.fw", NULL }, { 0x093b, 0xa004, "go7007/px-tv402u.fw", NULL }, diff --git a/drivers/staging/media/lirc/lirc_parallel.c b/drivers/staging/media/lirc/lirc_parallel.c index 0b589892351a..62f5137b947b 100644 --- a/drivers/staging/media/lirc/lirc_parallel.c +++ b/drivers/staging/media/lirc/lirc_parallel.c @@ -68,29 +68,29 @@ static bool debug; static bool check_pselecd; -unsigned int irq = LIRC_IRQ; -unsigned int io = LIRC_PORT; +static unsigned int irq = LIRC_IRQ; +static unsigned int io = LIRC_PORT; #ifdef LIRC_TIMER -unsigned int timer; -unsigned int default_timer = LIRC_TIMER; +static unsigned int timer; +static unsigned int default_timer = LIRC_TIMER; #endif #define RBUF_SIZE (256) /* this must be a power of 2 larger than 1 */ static int rbuf[RBUF_SIZE]; -DECLARE_WAIT_QUEUE_HEAD(lirc_wait); +static DECLARE_WAIT_QUEUE_HEAD(lirc_wait); -unsigned int rptr; -unsigned int wptr; -unsigned int lost_irqs; -int is_open; +static unsigned int rptr; +static unsigned int wptr; +static unsigned int lost_irqs; +static int is_open; -struct parport *pport; -struct pardevice *ppdevice; -int is_claimed; +static struct parport *pport; +static struct pardevice *ppdevice; +static int is_claimed; -unsigned int tx_mask = 1; +static unsigned int tx_mask = 1; /*** Internal Functions ***/ diff --git a/drivers/staging/media/solo6x10/solo6x10-core.c b/drivers/staging/media/solo6x10/solo6x10-core.c index 480b7c4064cc..f67046955ef6 100644 --- a/drivers/staging/media/solo6x10/solo6x10-core.c +++ b/drivers/staging/media/solo6x10/solo6x10-core.c @@ -40,7 +40,7 @@ MODULE_AUTHOR("Bluecherry "); MODULE_VERSION(SOLO6X10_VERSION); MODULE_LICENSE("GPL"); -unsigned video_nr = -1; +static unsigned video_nr = -1; module_param(video_nr, uint, 0644); MODULE_PARM_DESC(video_nr, "videoX start number, -1 is autodetect (default)"); -- 2.30.2