Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <ebru.akagunduz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ebru Akagunduz and committed by
Greg Kroah-Hartman
04ad3a64 4fe130f2

+15 -15
+1 -1
drivers/staging/media/go7007/go7007-loader.c
··· 28 28 const char * const fw_name2; 29 29 }; 30 30 31 - struct fw_config fw_configs[] = { 31 + static struct fw_config fw_configs[] = { 32 32 { 0x1943, 0xa250, "go7007/s2250-1.fw", "go7007/s2250-2.fw" }, 33 33 { 0x093b, 0xa002, "go7007/px-m402u.fw", NULL }, 34 34 { 0x093b, 0xa004, "go7007/px-tv402u.fw", NULL },
+13 -13
drivers/staging/media/lirc/lirc_parallel.c
··· 68 68 static bool debug; 69 69 static bool check_pselecd; 70 70 71 - unsigned int irq = LIRC_IRQ; 72 - unsigned int io = LIRC_PORT; 71 + static unsigned int irq = LIRC_IRQ; 72 + static unsigned int io = LIRC_PORT; 73 73 #ifdef LIRC_TIMER 74 - unsigned int timer; 75 - unsigned int default_timer = LIRC_TIMER; 74 + static unsigned int timer; 75 + static unsigned int default_timer = LIRC_TIMER; 76 76 #endif 77 77 78 78 #define RBUF_SIZE (256) /* this must be a power of 2 larger than 1 */ 79 79 80 80 static int rbuf[RBUF_SIZE]; 81 81 82 - DECLARE_WAIT_QUEUE_HEAD(lirc_wait); 82 + static DECLARE_WAIT_QUEUE_HEAD(lirc_wait); 83 83 84 - unsigned int rptr; 85 - unsigned int wptr; 86 - unsigned int lost_irqs; 87 - int is_open; 84 + static unsigned int rptr; 85 + static unsigned int wptr; 86 + static unsigned int lost_irqs; 87 + static int is_open; 88 88 89 - struct parport *pport; 90 - struct pardevice *ppdevice; 91 - int is_claimed; 89 + static struct parport *pport; 90 + static struct pardevice *ppdevice; 91 + static int is_claimed; 92 92 93 - unsigned int tx_mask = 1; 93 + static unsigned int tx_mask = 1; 94 94 95 95 /*** Internal Functions ***/ 96 96
+1 -1
drivers/staging/media/solo6x10/solo6x10-core.c
··· 40 40 MODULE_VERSION(SOLO6X10_VERSION); 41 41 MODULE_LICENSE("GPL"); 42 42 43 - unsigned video_nr = -1; 43 + static unsigned video_nr = -1; 44 44 module_param(video_nr, uint, 0644); 45 45 MODULE_PARM_DESC(video_nr, "videoX start number, -1 is autodetect (default)"); 46 46