From: Chen Zhigao <banyan8@yahoo.com.sg>
To: linux-mtd@lists.infradead.org
Subject: Compiling Errors of map_funcs.c
Date: Wed, 28 Sep 2005 15:33:30 +0800 [thread overview]
Message-ID: <433A474A.8040502@yahoo.com.sg> (raw)
Folks,
I try to enable support MTD device under MontaVista 3.1 for our Intel
IXP425 demo board. However, I got some errors when compiling the MTD
driver of the intel-ixdp4xx-arm_xscale_be Linux Support Package. I would
appreciate it if you could give me some pointer. Below is what I did.
#make ixdp425_config // use default settings for IXP425
#make dep
#make zImage
<snip>
xscale_be-gcc -mbig-endian -D__KERNEL__
-I/home/banyan/mykernel/linux-2.4.20_mvl31/include -Wall
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-Uarm -pipe -mapcs -mno-sched-prolog -mapcs-32 -D__LINUX_ARM_ARCH__=5
-mcpu=xscale -mtune=xscale -mshort-load-bytes -msoft-float -nostdinc
-iwithprefix include -DKBUILD_BASENAME=ixp425 -c -o ixp425.o ixp425.c
ixp425.c:35:1: warning: "B0" redefined
/home/banyan/mykernel/linux-2.4.20_mvl31/include/asm/termbits.h:88:1:
warning: this is the location of the previous definition
ixp425.c:75: error: unknown field `read16' specified in initializer
ixp425.c:75: warning: initialization from incompatible pointer type
ixp425.c:76: error: unknown field `copy_from' specified in initializer
ixp425.c:76: warning: initialization makes integer from pointer without
a cast
ixp425.c:77: error: unknown field `write16' specified in initializer
ixp425.c:77: warning: initialization makes integer from pointer without
a cast
ixp425.c:84: warning: return type defaults to `int'
make[4]: *** [ixp425.o] Error 1
I add "CONFIG_MTD_COMPLEX_MAPPINGS=y" into .config to enable the
definition of the "read16", "copy_from" and etc. fields. And "make dep;
make zImage" again.
xscale_be-gcc -mbig-endian -D__KERNEL__
-I/home/banyan/mykernel/linux-2.4.20_mvl31/include -Wall
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common
-Uarm -pipe -mapcs -mno-sched-prolog -mapcs-32 -D__LINUX_ARM_ARCH__=5
-mcpu=xscale -mtune=xscale -mshort-load-bytes -msoft-float -nostdinc
-iwithprefix include -DKBUILD_BASENAME=map_funcs -DEXPORT_SYMTAB -c
map_funcs.c
map_funcs.c:81: error: parse error before "do"
map_funcs.c:95: error: `simple_map_init' undeclared here (not in a function)
map_funcs.c:95: error: initializer element is not constant
map_funcs.c:95: error: (near initialization for
`__ksymtab_simple_map_init.value')
I can not figure out these errors, particularly line 81. Any comment and
suggestion will be highly appreciated.
Regards,
Zhigao
next reply other threads:[~2005-09-28 7:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-28 7:33 Chen Zhigao [this message]
2005-09-28 16:33 ` Compiling Errors of map_funcs.c Todd Poynor
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=433A474A.8040502@yahoo.com.sg \
--to=banyan8@yahoo.com.sg \
--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