Messages in this thread |  | | | Subject | Re: [PATCH 2/9] MTD: create lockless versions of {get,put}_mtd_device | | From | Maxim Levitsky <> | | Date | Fri, 08 Jan 2010 17:27:24 +0200 |
| |
On Fri, 2010-01-08 at 16:21 +0100, Jörn Engel wrote: > On Fri, 8 January 2010 17:06:38 +0200, Maxim Levitsky wrote: > > > > + err = __get_mtd_device(ret); > > Function is called here, afaics not declared and defined... > > > [...] > > +int __get_mtd_device(struct mtd_info *mtd) > > ...further below. Didn't gcc complain about this? Or am I missing > something? > > Jörn >
Yep, you miss this:
+extern int __get_mtd_device(struct mtd_info *mtd); +extern void __put_mtd_device(struct mtd_info *mtd);
I put that into the header, so these functions can be used outside.
When I compiled the kernel, there were no warnings.
Best regards, Maxim Levitsky
-- 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/
|  |