Re: [PATCH 2/9] MTD: create lockless versions of{get,put}_mtd_device

From: Maxim Levitsky
Date: Fri Jan 08 2010 - 10:27:36 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/