I’m using ubuntu 14.04 with kernel: 3.13 and x86_64, trying to compile yaffs2 with the following error messages
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_file_flush’:
fs/yaffs2/yaffs_vfs.c:741:2: error: too few arguments to function ‘yaffs_flush_file’
yaffs_flush_file(obj, 1, 0);
^
In file included from fs/yaffs2/yaffs_vfs.c:173:0:
fs/yaffs2/yaffs_guts.h:879:5: note: declared here
int yaffs_flush_file(struct yaffs_obj *in,
^
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_sync_object’:
fs/yaffs2/yaffs_vfs.c:771:2: error: too few arguments to function ‘yaffs_flush_file’
yaffs_flush_file(obj, 1, datasync);
^
In file included from fs/yaffs2/yaffs_vfs.c:173:0:
fs/yaffs2/yaffs_guts.h:879:5: note: declared here
int yaffs_flush_file(struct yaffs_obj *in,
^
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_flush_inodes’:
fs/yaffs2/yaffs_vfs.c:2190:4: error: too few arguments to function ‘yaffs_flush_file’
yaffs_flush_file(obj, 1, 0);
^
In file included from fs/yaffs2/yaffs_vfs.c:173:0:
fs/yaffs2/yaffs_guts.h:879:5: note: declared here
int yaffs_flush_file(struct yaffs_obj *in,
^
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_flush_super’:
fs/yaffs2/yaffs_vfs.c:2203:2: error: too few arguments to function ‘yaffs_flush_whole_cache’
yaffs_flush_whole_cache(dev);
^
In file included from fs/yaffs2/yaffs_vfs.c:173:0:
fs/yaffs2/yaffs_guts.h:885:6: note: declared here
void yaffs_flush_whole_cache(struct yaffs_dev *dev, int discard);
^
make[3]: *** [fs/yaffs2/yaffs_vfs.o] Error 1
make[2]: *** [fs/yaffs2] Error 2
make[1]: *** [fs] Error 2
make[1]: Leaving directory `/home/testing/kernel/source'
make: *** [debian/stamp/build/kernel] Error 2
what can i do and how to fix it??
Peter KU