From: Li Yang <leoli@motorola.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Mtd compile fails on ppc arch
Date: 03 Feb 2004 15:30:39 +0800 [thread overview]
Message-ID: <1075793438.20041.51.camel@Gundam> (raw)
In-Reply-To: <1075789858.19654.5.camel@imladris.demon.co.uk>
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,
Leo
prev parent reply other threads:[~2004-02-03 7:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-03 6:03 Mtd compile fails on ppc arch Li Yang
2004-02-03 6:30 ` David Woodhouse
2004-02-03 7:30 ` Li Yang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1075793438.20041.51.camel@Gundam \
--to=leoli@motorola.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox