scsi: megaraid_sas: Make poll_aen_lock static
authorYueHaibing <yuehaibing@huawei.com>
Mon, 25 Nov 2019 14:44:54 +0000 (22:44 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Nov 2019 02:44:31 +0000 (21:44 -0500)
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>
drivers/scsi/megaraid/megaraid_sas_base.c

index c40fbea..a4bc814 100644 (file)
@@ -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);