Skip to content

Commit 73374b3

Browse files
YueHaibingmartinkpetersen
authored andcommitted
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>
1 parent a35989a commit 73374b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/scsi/megaraid/megaraid_sas_base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static bool support_nvme_encapsulation;
199199
static bool support_pci_lane_margining;
200200

201201
/* define lock for aen poll */
202-
spinlock_t poll_aen_lock;
202+
static spinlock_t poll_aen_lock;
203203

204204
extern struct dentry *megasas_debugfs_root;
205205
extern void megasas_init_debugfs(void);

0 commit comments

Comments
 (0)