staging: cxt1e1: Fix Sparse Warning for Static Declarations in linux.c
authorHimangi Saraogi <himangi774@gmail.com>
Sun, 16 Mar 2014 20:47:17 +0000 (02:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Mar 2014 17:42:34 +0000 (10:42 -0700)
This patch fixes the following sparse warnings:
drivers/staging/cxt1e1/linux.c:106:13: warning: symbol 'log_level_default' was not declared. Should it be static?
drivers/staging/cxt1e1/linux.c:110:13: warning: symbol 'max_mru_default' was not declared. Should it be static?
drivers/staging/cxt1e1/linux.c:255:1: warning: symbol 'c4_linux_interrupt' was not declared. Should it be static?
drivers/staging/cxt1e1/linux.c:265:1: warning: symbol 'c4_ebus_interrupt' was not declared. Should it be static?

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/cxt1e1/linux.c

index 7a2ee5e..e0173f4 100644 (file)
@@ -103,11 +103,11 @@ extern int  unregister_hdlc_device_v7(hdlc_device *);
 
 int         error_flag;         /* module load error reporting */
 int         cxt1e1_log_level = LOG_ERROR;
-int         log_level_default = LOG_ERROR;
+static int  log_level_default = LOG_ERROR;
 module_param(cxt1e1_log_level, int, 0444);
 
 int         cxt1e1_max_mru = MUSYCC_MRU;
-int         max_mru_default = MUSYCC_MRU;
+static int  max_mru_default = MUSYCC_MRU;
 module_param(cxt1e1_max_mru, int, 0444);
 
 int         cxt1e1_max_mtu = MUSYCC_MTU;
@@ -248,7 +248,7 @@ c4_wq_port_cleanup(mpi_t *pi)
 
 /***************************************************************************/
 
-irqreturn_t
+static irqreturn_t
 c4_linux_interrupt(int irq, void *dev_instance)
 {
        struct net_device *ndev = dev_instance;
@@ -258,7 +258,7 @@ c4_linux_interrupt(int irq, void *dev_instance)
 
 
 #ifdef CONFIG_SBE_PMCC4_NCOMM
-irqreturn_t
+static irqreturn_t
 c4_ebus_interrupt(int irq, void *dev_instance)
 {
        struct net_device *ndev = dev_instance;