[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1262964444.12577.29.camel@maxim-laptop>
Date: Fri, 08 Jan 2010 17:27:24 +0200
From: Maxim Levitsky <maximlevitsky@...il.com>
To: Jörn Engel <joern@...fs.org>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
linux-mtd <linux-mtd@...ts.infradead.org>,
Alex Dubov <oakad@...oo.com>
Subject: Re: [PATCH 2/9] MTD: create lockless versions of
{get,put}_mtd_device
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists