diff mbox series

[-next] scsi: megaraid_sas: Make poll_aen_lock static

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

Commit Message

Yue Haibing Nov. 25, 2019, 2:44 p.m. UTC
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(-)

Comments

Martin K. Petersen Nov. 27, 2019, 2:44 a.m. UTC | #1
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 mbox series

Patch

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);