scsi: megaraid: make two symbols static in megaraid_sas_base.c
Fix the following sparse warning: drivers/scsi/megaraid/megaraid_sas_base.c:84:5: warning: symbol 'rdpq_enable' was not declared. Should it be static? drivers/scsi/megaraid/megaraid_sas_base.c:92:14: warning: symbol 'scmd_timeout' was not declared. Should it be static? Link: https://lore.kernel.org/r/20200407092827.18074-5-yanaijie@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
057d1c0d1b
commit
1909a4386c
@ -81,7 +81,7 @@ int smp_affinity_enable = 1;
|
||||
module_param(smp_affinity_enable, int, 0444);
|
||||
MODULE_PARM_DESC(smp_affinity_enable, "SMP affinity feature enable/disable Default: enable(1)");
|
||||
|
||||
int rdpq_enable = 1;
|
||||
static int rdpq_enable = 1;
|
||||
module_param(rdpq_enable, int, 0444);
|
||||
MODULE_PARM_DESC(rdpq_enable, "Allocate reply queue in chunks for large queue depth enable/disable Default: enable(1)");
|
||||
|
||||
@ -89,7 +89,7 @@ unsigned int dual_qdepth_disable;
|
||||
module_param(dual_qdepth_disable, int, 0444);
|
||||
MODULE_PARM_DESC(dual_qdepth_disable, "Disable dual queue depth feature. Default: 0");
|
||||
|
||||
unsigned int scmd_timeout = MEGASAS_DEFAULT_CMD_TIMEOUT;
|
||||
static unsigned int scmd_timeout = MEGASAS_DEFAULT_CMD_TIMEOUT;
|
||||
module_param(scmd_timeout, int, 0444);
|
||||
MODULE_PARM_DESC(scmd_timeout, "scsi command timeout (10-90s), default 90s. See megasas_reset_timer.");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user