[SCSI] libfc: fix sparse static and non-ANSI warnings
Fix sparse warning for non-ANSI function declaration. Declare workqueue structs as static. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Robert Love <robert.w.love@intel.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
committed by
James Bottomley
parent
52ee832195
commit
55204909bb
@ -38,7 +38,7 @@ u16 fc_cpu_mask; /* cpu mask for possible cpus */
|
||||
EXPORT_SYMBOL(fc_cpu_mask);
|
||||
static u16 fc_cpu_order; /* 2's power to represent total possible cpus */
|
||||
static struct kmem_cache *fc_em_cachep; /* cache for exchanges */
|
||||
struct workqueue_struct *fc_exch_workqueue;
|
||||
static struct workqueue_struct *fc_exch_workqueue;
|
||||
|
||||
/*
|
||||
* Structure and function definitions for managing Fibre Channel Exchanges
|
||||
@ -2357,7 +2357,7 @@ EXPORT_SYMBOL(fc_exch_init);
|
||||
/**
|
||||
* fc_setup_exch_mgr() - Setup an exchange manager
|
||||
*/
|
||||
int fc_setup_exch_mgr()
|
||||
int fc_setup_exch_mgr(void)
|
||||
{
|
||||
fc_em_cachep = kmem_cache_create("libfc_em", sizeof(struct fc_exch),
|
||||
0, SLAB_HWCACHE_ALIGN, NULL);
|
||||
@ -2395,7 +2395,7 @@ int fc_setup_exch_mgr()
|
||||
/**
|
||||
* fc_destroy_exch_mgr() - Destroy an exchange manager
|
||||
*/
|
||||
void fc_destroy_exch_mgr()
|
||||
void fc_destroy_exch_mgr(void)
|
||||
{
|
||||
destroy_workqueue(fc_exch_workqueue);
|
||||
kmem_cache_destroy(fc_em_cachep);
|
||||
|
Reference in New Issue
Block a user