Message ID | 20191125144454.22680-1-yuehaibing@huawei.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 73374b39b01e91b90ff683dc259b89f528c4f367 |
Headers | show |
Series | [-next] scsi: megaraid_sas: Make poll_aen_lock static | expand |
YueHaibing, > Fix sparse warning: > > drivers/scsi/megaraid/megaraid_sas_base.c:187:12: > warning: symbol 'poll_aen_lock' was not declared. Should it be static? Applied to 5.5/scsi-queue, thanks!
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index c40fbea..a4bc814 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);
Fix sparse warning: drivers/scsi/megaraid/megaraid_sas_base.c:187:12: warning: symbol 'poll_aen_lock' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> --- drivers/scsi/megaraid/megaraid_sas_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)