[PATCH v3] mtd/docg3: fixes and cleanups
Artem Bityutskiy
dedekind1 at gmail.com
Mon Dec 12 16:13:05 EST 2011
On Fri, 2011-12-09 at 17:13 +0100, Robert Jarzmik wrote:
> Artem Bityutskiy <dedekind1 at gmail.com> writes:
>
> > On Fri, 2011-12-02 at 20:00 +0100, Robert Jarzmik wrote:
> >> This patch takes into account checkpatch, sparse and ECC
> >> comments.
> >>
> >> Signed-off-by: Robert Jarzmik <robert.jarzmik at free.fr>
> >
> > Pushed to l2-mtd-2.6.git, thanks. But I still see this warning when
> > I compile on x86_64:
> >
> > drivers/mtd/devices/docg3.c:1050:12: warning: ‘doc_get_erase_count’ defined
> > but not used [-Wunused-function]
>
> Hi Artem,
>
> I have found no clean and good way to handle the erase count. As a fallback,
> please accept the following patch which removes the unused function. It's kind
> of a "looser" approach, but that's the best I can do by now.
What do you mean by "handle" ? Is the problem that docg3 maintains
per-eraseblock erase-counters and you do not know how to use them? May
be it is better to just embrace this function with "#ifdef 0" and add a
comment that we can do this but do not have a good use for this?
Artem.
More information about the linux-mtd
mailing list