mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	scsi: fnic: make fnic_list and fnic_list_lock static
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>
This commit is contained in:
		
							parent
							
								
									363f4d9375
								
							
						
					
					
						commit
						1d8baf9ed0
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -49,8 +49,8 @@ | ||||||
| 
 | 
 | ||||||
| static struct kmem_cache *fnic_sgl_cache[FNIC_SGL_NUM_CACHES]; | static struct kmem_cache *fnic_sgl_cache[FNIC_SGL_NUM_CACHES]; | ||||||
| static struct kmem_cache *fnic_io_req_cache; | static struct kmem_cache *fnic_io_req_cache; | ||||||
| LIST_HEAD(fnic_list); | static LIST_HEAD(fnic_list); | ||||||
| DEFINE_SPINLOCK(fnic_list_lock); | static DEFINE_SPINLOCK(fnic_list_lock); | ||||||
| 
 | 
 | ||||||
| /* Supported devices by fnic module */ | /* Supported devices by fnic module */ | ||||||
| static struct pci_device_id fnic_id_table[] = { | static struct pci_device_id fnic_id_table[] = { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Jason Yan
						Jason Yan