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

Maxim Levitsky
2010-01-08T15:27:33Z

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