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

During compiling I have got the following errors.


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#


Could you please help me to resolve these issues.


Thanks,
Alexander