All of lore.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: scsi <linux-scsi@vger.kernel.org>,
	James Bottomley <James.Bottomley@HansenPartnership.com>
Subject: [PATCH] scsi/fc: fix function declarations to be ANSI-compliant
Date: Mon, 27 Apr 2009 21:49:31 -0700	[thread overview]
Message-ID: <49F68ADB.6010901@oracle.com> (raw)

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix scsi/fc 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'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/scsi/fcoe/fcoe.c      |    2 +-
 drivers/scsi/libfc/fc_rport.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

--- mmotm-2009-0427-1545.orig/drivers/scsi/fcoe/fcoe.c
+++ mmotm-2009-0427-1545/drivers/scsi/fcoe/fcoe.c
@@ -1353,7 +1353,7 @@ out:
 /**
  * fcoe_dev_setup() - setup link change notification interface
  */
-static void fcoe_dev_setup()
+static void fcoe_dev_setup(void)
 {
 	/*
 	 * here setup a interface specific wd time to
--- mmotm-2009-0427-1545.orig/drivers/scsi/libfc/fc_rport.c
+++ mmotm-2009-0427-1545/drivers/scsi/libfc/fc_rport.c
@@ -1290,7 +1290,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)
@@ -1299,7 +1299,7 @@ int fc_setup_rport()
 }
 EXPORT_SYMBOL(fc_setup_rport);
 
-void fc_destroy_rport()
+void fc_destroy_rport(void)
 {
 	destroy_workqueue(rport_event_queue);
 }

                 reply	other threads:[~2009-04-28  4:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49F68ADB.6010901@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.