* [PATCH] remove warning for 3c509.c
@ 2003-03-20 7:41 Martin J. Bligh
0 siblings, 0 replies; only message in thread
From: Martin J. Bligh @ 2003-03-20 7:41 UTC (permalink / raw)
To: Jeff Garzik; +Cc: linux-kernel
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[] = {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-20 7:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-20 7:41 [PATCH] remove warning for 3c509.c Martin J. Bligh
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®