]> git.hungrycats.org Git - linux/commitdiff
[PATCH] remove warning for 3c509.c
authorMartin J. Bligh <mbligh@aracnet.com>
Fri, 28 Mar 2003 19:43:27 +0000 (14:43 -0500)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 28 Mar 2003 19:43:27 +0000 (14:43 -0500)
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.

drivers/net/3c509.c

index 2f1d8eda388fbc2ae6bea14f9127059ad3b03208..61cde566fcb3ba261e70214bf7d07cb0fd5622e6 100644 (file)
@@ -208,7 +208,9 @@ static int el3_resume(struct pm_dev *pdev);
 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[] = {