summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-11-25 15:44:54 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2019-11-27 03:44:31 +0100
commit73374b39b01e91b90ff683dc259b89f528c4f367 (patch)
tree76b95e40f988818d0f30b109942752058c569392 /drivers/scsi/megaraid
parentscsi: sd_zbc: Improve report zones error printout (diff)
downloadlinux-73374b39b01e91b90ff683dc259b89f528c4f367.tar.xz
linux-73374b39b01e91b90ff683dc259b89f528c4f367.zip
scsi: megaraid_sas: Make poll_aen_lock static
Fix sparse warning: drivers/scsi/megaraid/megaraid_sas_base.c:187:12: warning: symbol 'poll_aen_lock' was not declared. Should it be static? Link: https://lore.kernel.org/r/20191125144454.22680-1-yuehaibing@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index c40fbea06cc5..a4bc81479284 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -199,7 +199,7 @@ static bool support_nvme_encapsulation;
static bool support_pci_lane_margining;
/* define lock for aen poll */
-spinlock_t poll_aen_lock;
+static spinlock_t poll_aen_lock;
extern struct dentry *megasas_debugfs_root;
extern void megasas_init_debugfs(void);