Re: [Yaffs] Error during compile the yaffs on kernel v3.16.6…

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ image001.jpg (image/jpeg)
Delete this message
Reply to this message
Author: Alexander Sharabanov
Date:  
To: yaffs@stoneboat.aleph1.co.uk
CC: Ulyana Tverdova
Subject: Re: [Yaffs] Error during compile the yaffs on kernel v3.16.61
Hi All,

Currently I am upgrading kernel on my embedded system. I would like to use the linux kernel version v3.16.61. I uplouded linux kernel from kernel.org and added the yaffs from:

git clone git://www.aleph1.co.uk/yaffs2<http://www.aleph1.co.uk/yaffs2>

During compiling I have got the following errors.
[cid:image001.jpg@01D49B90.1D556A80]

List of output:

CHK include/generated/compile.h
CALL arch/powerpc/kernel/systbl_chk.sh
CC fs/yaffs2/yaffs_vfs.o
fs/yaffs2/yaffs_vfs.c:270:19: error: static declaration of 'setattr_prepare' follows non-static declaration
include/linux/fs.h:2636:12: note: previous declaration of 'setattr_prepare' was here
fs/yaffs2/yaffs_vfs.c: In function 'setattr_prepare':
fs/yaffs2/yaffs_vfs.c:272:2: error: implicit declaration of function 'inode_change_ok' [-Werror=implicit-function-declaration]
fs/yaffs2/yaffs_vfs.c: At top level:
fs/yaffs2/yaffs_vfs.c:1063:2: warning: initialization from incompatible pointer type [enabled by default]
fs/yaffs2/yaffs_vfs.c:1063:2: warning: (near initialization for 'yaffs_file_inode_operations.getxattr') [enabled by default]
fs/yaffs2/yaffs_vfs.c:1192:2: warning: initialization from incompatible pointer type [enabled by default]
fs/yaffs2/yaffs_vfs.c:1192:2: warning: (near initialization for 'yaffs_symlink_inode_operations.getxattr') [enabled by default]
fs/yaffs2/yaffs_vfs.c:1674:2: warning: initialization from incompatible pointer type [enabled by default]
fs/yaffs2/yaffs_vfs.c:1674:2: warning: (near initialization for 'yaffs_dir_inode_operations.getxattr') [enabled by default]
cc1: some warnings being treated as errors

make[2]: *** [fs/yaffs2/yaffs_vfs.o] Ошибка 1
make[1]: *** [fs/yaffs2] Ошибка 2
make: *** [fs] Ошибка 2
root@debian:/opt/eldk-5.1/powerpc-4xx/Builds/linux-3.16.61#<mailto:root@debian:/opt/eldk-5.1/powerpc-4xx/Builds/linux-3.16.61#>

Could you please help me to resolve these issues.


Thanks,
Alexander