mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 11:11:22 -04:00
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 <himangi774@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
56bfef43d9
commit
4d7af37672
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user