From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] remove warning for 3c509.c
Date: Wed, 19 Mar 2003 23:41:20 -0800 [thread overview]
Message-ID: <13950000.1048146080@[10.10.2.4]> (raw)
Get this compile warning:
drivers/net/3c509.c:207: warning: `el3_device_remove' declared `static' but never defined
because the function definition is under
"#if defined(CONFIG_EISA) || defined(CONFIG_MCA)".
This patch puts the declaration under the same conditions.
I'd be shocked if it wasn't correct ;-)
M.
diff -urpN -X /home/fletch/.diff.exclude virgin/drivers/net/3c509.c 3c509_fix/drivers/net/3c509.c
--- virgin/drivers/net/3c509.c Wed Mar 5 07:37:01 2003
+++ 3c509_fix/drivers/net/3c509.c Wed Mar 19 23:35:44 2003
@@ -204,7 +204,9 @@ static int el3_resume(struct pm_dev *pde
static int el3_pm_callback(struct pm_dev *pdev, pm_request_t rqst, void *data);
#endif
/* generic device remove for all device types */
+#if defined(CONFIG_EISA) || defined(CONFIG_MCA)
static int el3_device_remove (struct device *device);
+#endif
#ifdef CONFIG_EISA
struct eisa_device_id el3_eisa_ids[] = {
reply other threads:[~2003-03-20 7:30 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='13950000.1048146080@[10.10.2.4]' \
--to=mbligh@aracnet.com \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®