thanks for your following.
i'm porting linux 3.14.2 to s3c2440a(arm7) board, now ethernet, lcd, uart, and nand driver are all in work.
dhcp client can get ip,dns from dhcp server, even i can ping www.google.com in uart console, it's alive.
nowtime, i'm patch yaffs2 to linux 3.14.2.
firstly, git yaffs2 use command:
git clone git://www.aleph1.co.uk/yaffs2
i can get a local dir yaffs2, patch command:
./patch-ker.sh c m /home/lianhua/linux-3.14.2
patch ok.
under linux kernel make menuconfig, <*> yaffs2 file system support is selected.
errors happened here when compiling linux kernel.
yaffs_vfs.c,line 1229:
uid_t uid = YCRED(current)->fsuid;
manual extract YCRED to:
uid_t uid = current->cred->fsuid;
no help for errors.
maybe compiler cannot find current, it's a global variable, be used in so many source file.
but why?
sorry for my pool english.
------------------ 原始邮件 ------------------
发件人: "Laurie van Someren";<laurie@aleph1.co.uk>;
发送时间: 2014年5月12日(星期一) 下午5:23
收件人: "◤佐岸┡佑转"<2947868523@qq.com>;
主题: Re: [Yaffs] i've problem when use yaffs2 in linux 3.14.2
On 12/05/14 10:17, ◤佐岸┡佑转 wrote:
after patch yaffs2 to linux 3.14.2, compiling errors here.
//---------------------------------------------------------------------------------------------------------------
fs/yaffs2/yaffs_vfs.c: In function 'yaffs_mknod':
fs/yaffs2/yaffs_vfs.c:1229: error: incompatible types in
initialization
fs/yaffs2/yaffs_vfs.c:1231: error: incompatible types in
initialization
fs/yaffs2/yaffs_vfs.c: In function 'yaffs_symlink':
fs/yaffs2/yaffs_vfs.c:1428: error: incompatible types in
initialization
fs/yaffs2/yaffs_vfs.c:1430: error: incompatible types in
initialization
fs/yaffs2/yaffs_vfs.c: At top level:
fs/yaffs2/yaffs_vfs.c:1787: error: unknown field 'readdir'
specified in initializer
fs/yaffs2/yaffs_vfs.c:1787: warning: initialization from
incompatible pointer type
fs/yaffs2/yaffs_vfs.c: In function
'yaffs_fill_inode_from_obj':
fs/yaffs2/yaffs_vfs.c:1833: error: incompatible types in
assignment
fs/yaffs2/yaffs_vfs.c:1834: error: incompatible types in
assignment
fs/yaffs2/yaffs_vfs.c:1858: warning: format '%d' expects
type 'int', but argument 3 has type 'kuid_t'
fs/yaffs2/yaffs_vfs.c:1858: warning: format '%d' expects
type 'int', but argument 4 has type 'kgid_t'
fs/yaffs2/yaffs_vfs.c: In function
'yaffs_proc_debug_write':
fs/yaffs2/yaffs_vfs.c:3301: warning: comparison of distinct
pointer types lacks a cast
fs/yaffs2/yaffs_vfs.c: In function 'init_yaffs_fs':
fs/yaffs2/yaffs_vfs.c:3395: error: implicit declaration of
function 'create_proc_entry'
fs/yaffs2/yaffs_vfs.c:3396: warning: assignment makes
pointer from integer without a cast
fs/yaffs2/yaffs_vfs.c:3399: error: dereferencing pointer to
incomplete type
fs/yaffs2/yaffs_vfs.c:3400: error: dereferencing pointer to
incomplete type
fs/yaffs2/yaffs_vfs.c:3401: error: dereferencing pointer to
incomplete type
make[2]: *** [fs/yaffs2/yaffs_vfs.o] Error 1
make[1]: *** [fs/yaffs2] Error 2
make: *** [fs] Error 2
//---------------------------------------------------------------------------------------------------------------
what can i do for these errors?
thanks.
I am an administrator and do now know the answer to your question.
You are much more likely to get a useful answer from others if you
specify the context you are working in. The Linux version number is
simply a start. What other parts of Linux are you using?
Have you read the documentation at yaffs.net and particularly How
Yaffs Works and The Yaffs Direct Interface ? Are you using mtd
? With what configuration ? and so on . . .
Thanks,
LvS
_______________________________________________
yaffs mailing list
yaffs@lists.aleph1.co.uk
http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs