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/[email protected] Reported-by: Hulk Robot <[email protected]> Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent a35989a commit 73374b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)