[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

szülő
52ee832195
commit
55204909bb
@@ -58,7 +58,7 @@
|
||||
|
||||
#include "fc_libfc.h"
|
||||
|
||||
struct workqueue_struct *rport_event_queue;
|
||||
static struct workqueue_struct *rport_event_queue;
|
||||
|
||||
static void fc_rport_enter_flogi(struct fc_rport_priv *);
|
||||
static void fc_rport_enter_plogi(struct fc_rport_priv *);
|
||||
@@ -1890,7 +1890,7 @@ EXPORT_SYMBOL(fc_rport_init);
|
||||
/**
|
||||
* fc_setup_rport() - Initialize the rport_event_queue
|
||||
*/
|
||||
int fc_setup_rport()
|
||||
int fc_setup_rport(void)
|
||||
{
|
||||
rport_event_queue = create_singlethread_workqueue("fc_rport_eq");
|
||||
if (!rport_event_queue)
|
||||
@@ -1901,7 +1901,7 @@ int fc_setup_rport()
|
||||
/**
|
||||
* fc_destroy_rport() - Destroy the rport_event_queue
|
||||
*/
|
||||
void fc_destroy_rport()
|
||||
void fc_destroy_rport(void)
|
||||
{
|
||||
destroy_workqueue(rport_event_queue);
|
||||
}
|
||||
|
Reference in New Issue
Block a user