Skip to content

Commit

Permalink
[SCSI] fcoe, libfc: fix function declarations to be ANSI-compliant
Browse files Browse the repository at this point in the history
Fix function declarations:

drivers/scsi/fcoe/fcoe.c:1356:28: warning: non-ANSI function declaration of function 'fcoe_dev_setup'
drivers/scsi/libfc/fc_rport.c:1293:20: warning: non-ANSI function declaration of function 'fc_setup_rport'
drivers/scsi/libfc/fc_rport.c:1302:23: warning: non-ANSI function declaration of function 'fc_destroy_rport'

[jejb: fixed wrong doc in comment noticed during inspection]
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
  • Loading branch information
Randy Dunlap authored and James Bottomley committed May 20, 2009
1 parent 73da9c1 commit b0d428a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/fcoe/fcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1350,13 +1350,13 @@ static int fcoe_check_wait_queue(struct fc_lport *lp)
/**
* fcoe_dev_setup() - setup link change notification interface
*/
static void fcoe_dev_setup()
static void fcoe_dev_setup(void)
{
register_netdevice_notifier(&fcoe_notifier);
}

/**
* fcoe_dev_setup() - cleanup link change notification interface
* fcoe_dev_cleanup() - cleanup link change notification interface
*/
static void fcoe_dev_cleanup(void)
{
Expand Down
4 changes: 2 additions & 2 deletions drivers/scsi/libfc/fc_rport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ int fc_rport_init(struct fc_lport *lport)
}
EXPORT_SYMBOL(fc_rport_init);

int fc_setup_rport()
int fc_setup_rport(void)
{
rport_event_queue = create_singlethread_workqueue("fc_rport_eq");
if (!rport_event_queue)
Expand All @@ -1339,7 +1339,7 @@ int fc_setup_rport()
}
EXPORT_SYMBOL(fc_setup_rport);

void fc_destroy_rport()
void fc_destroy_rport(void)
{
destroy_workqueue(rport_event_queue);
}
Expand Down

0 comments on commit b0d428a

Please sign in to comment.