Mtd compile fails on ppc arch

Li Yang leoli at
Tue Feb 3 02:30:39 EST 2004

On Tue, 2004-02-03 at 14:30, David Woodhouse wrote:
> On Tue, 2004-02-03 at 14:03 +0800, Li Yang wrote:
> > Hi,
> > 
> > I updated the mtd driver in kernel through the latest snapshot.  I have
> > tested kernel 2.4.20 and 2.4.22.  The same parse error occurred for ppc
> > arch.  I have tried two cross toolchains, the results are the same.  So
> > it's unlikely to be cross compiler problem.  Btw: i386 compiles well.  I
> > looked into some code, the problem seems to be related to headers.  But
> > I can't figure it out.  Does anyone have a clue?
> #include <linux/slab.h>
> Evidently it gets included somehow on i386 via one of the other headers
> we _do_ include -- but not on ppc. But sharp.c is deprecated and you

Yes, sharp.c need linux/slab.h and linux/init.h to compile successfully
which are removed from headers in linux/mtd like linux/mtd/map.h.  After
adding these two includes, it can compile well.

> should be using jedec_probe and cfi_cmdset_0002 instead. 
Thank you,

More information about the linux-mtd mailing list