]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
scsi: fnic: make fnic_list and fnic_list_lock static
authorJason Yan <yanaijie@huawei.com>
Wed, 15 Apr 2020 09:38:08 +0000 (17:38 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 17 Apr 2020 17:48:04 +0000 (13:48 -0400)
Fix the following sparse warning:

drivers/scsi/fnic/fnic_main.c:52:1: warning: symbol 'fnic_list' was not
declared. Should it be static?
drivers/scsi/fnic/fnic_main.c:53:1: warning: symbol 'fnic_list_lock' was
not declared. Should it be static?

Link: https://lore.kernel.org/r/20200415093809.9365-2-yanaijie@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fnic/fnic_main.c

index 18584ab27c3293c24891607cb028449801d3d8b3..7910b573bacbe032f9eeecd5c2fbdb8a7d0f2568 100644 (file)
@@ -49,8 +49,8 @@
 
 static struct kmem_cache *fnic_sgl_cache[FNIC_SGL_NUM_CACHES];
 static struct kmem_cache *fnic_io_req_cache;
-LIST_HEAD(fnic_list);
-DEFINE_SPINLOCK(fnic_list_lock);
+static LIST_HEAD(fnic_list);
+static DEFINE_SPINLOCK(fnic_list_lock);
 
 /* Supported devices by fnic module */
 static struct pci_device_id fnic_id_table[] = {