From 4d7af37672f456dd32c6200f87fe02a7103b4323 Mon Sep 17 00:00:00 2001 From: Himangi Saraogi Date: Mon, 17 Mar 2014 02:17:17 +0530 Subject: [PATCH] staging: cxt1e1: Fix Sparse Warning for Static Declarations in linux.c 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/cxt1e1/linux.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/cxt1e1/linux.c index 7a2ee5e3cdec..e0173f411b07 100644 --- a/drivers/staging/cxt1e1/linux.c +++ b/drivers/staging/cxt1e1/linux.c @@ -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; -- 2.20.1