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>
This commit is contained in:
Ebru Akagunduz 2014-03-05 19:15:29 +02:00 committed by Greg Kroah-Hartman
parent 4fe130f2a4
commit 04ad3a644e
3 changed files with 15 additions and 15 deletions

View File

@ -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 },

View File

@ -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 ***/

View File

@ -40,7 +40,7 @@ MODULE_AUTHOR("Bluecherry <maintainers@bluecherrydvr.com>");
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)");