[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
@@ -42,7 +42,7 @@
|
||||
|
||||
#include "fc_libfc.h"
|
||||
|
||||
struct kmem_cache *scsi_pkt_cachep;
|
||||
static struct kmem_cache *scsi_pkt_cachep;
|
||||
|
||||
/* SRB state definitions */
|
||||
#define FC_SRB_FREE 0 /* cmd is free */
|
||||
@@ -2244,7 +2244,7 @@ void fc_fcp_destroy(struct fc_lport *lport)
|
||||
}
|
||||
EXPORT_SYMBOL(fc_fcp_destroy);
|
||||
|
||||
int fc_setup_fcp()
|
||||
int fc_setup_fcp(void)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
@@ -2260,7 +2260,7 @@ int fc_setup_fcp()
|
||||
return rc;
|
||||
}
|
||||
|
||||
void fc_destroy_fcp()
|
||||
void fc_destroy_fcp(void)
|
||||
{
|
||||
if (scsi_pkt_cachep)
|
||||
kmem_cache_destroy(scsi_pkt_cachep);
|
||||
|
||||
Reference in New Issue
Block a user