From: Li Yang <leoli@motorola.com>
To: linux-mtd@lists.infradead.org
Subject: Mtd compile fails on ppc arch
Date: 03 Feb 2004 14:03:03 +0800 [thread overview]
Message-ID: <1075788182.20041.38.camel@Gundam> (raw)
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?
powerpc-linux-gcc -D__KERNEL__
-I/home/leo/beijing/project/pq27/linux-2.4.22/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer
-I/home/leo/beijing/project/pq27/linux-2.4.22/arch/ppc -fsigned-char
-msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring
-nostdinc -iwithprefix include -DKBUILD_BASENAME=sharp -c -o sharp.o
sharp.c
sharp.c: In function `sharp_probe':
sharp.c:115: warning: implicit declaration of function `kmalloc'
sharp.c:115: warning: assignment makes pointer from integer without a
cast
sharp.c:119: warning: assignment makes pointer from integer without a
cast
sharp.c:121: warning: implicit declaration of function `kfree'
sharp.c: At top level:
sharp.c:577: parse error before `sharp_probe_init'
sharp.c:578: warning: return-type defaults to `int'
sharp.c:586: parse error before `sharp_probe_exit'
sharp.c:587: warning: return-type defaults to `int'
sharp.c: In function `sharp_probe_exit':
sharp.c:589: warning: control reaches end of non-void function
sharp.c: At top level:
sharp.c:591: warning: type defaults to `int' in declaration of
`module_init'
sharp.c:591: warning: parameter names (without types) in function
declaration
sharp.c:591: warning: data definition has no type or storage class
sharp.c:592: warning: type defaults to `int' in declaration of
`module_exit'
sharp.c:592: warning: parameter names (without types) in function
declaration
sharp.c:592: warning: data definition has no type or storage class
make[4]: *** [sharp.o] Error 1
make[4]: Leaving directory
`/home/leo/beijing/project/pq27/linux-2.4.22/drivers/
mtd/chips'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory
`/home/leo/beijing/project/pq27/linux-2.4.22/drivers/
mtd/chips'
make[2]: *** [_subdir_chips] Error 2
make[2]: Leaving directory
`/home/leo/beijing/project/pq27/linux-2.4.22/drivers/
mtd'
make[1]: *** [_subdir_mtd] Error 2
make[1]: Leaving directory
`/home/leo/beijing/project/pq27/linux-2.4.22/drivers'
make: *** [_dir_drivers] Error 2
Regards,
Leo
next reply other threads:[~2004-02-03 6:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-03 6:03 Li Yang [this message]
2004-02-03 6:30 ` Mtd compile fails on ppc arch David Woodhouse
2004-02-03 7:30 ` Li Yang
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=1075788182.20041.38.camel@Gundam \
--to=leoli@motorola.com \
--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