Messages in this thread Patch in this message | | | Date | Wed, 19 Mar 2003 23:41:20 -0800 | From | "Martin J. Bligh" <> | Subject | [PATCH] remove warning for 3c509.c |
| |
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[] = { - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |