[Yaffs] YAFFS2 compilation error for Linux-2.6.10

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Shailesh Panchal
Date:  
To: yaffs
Subject: [Yaffs] YAFFS2 compilation error for Linux-2.6.10
Hi All,

I am trying to compile YAFFS2 file system support for Linux-2.6.10. But it
was failed. Show to error regarding different data structure of Linux
kernel. I have print the error message. Please could you help me to compile
YAFFS2 with Linux-2.6.10.

Note: I could not migrate with latest Linux kernel version.

-----------------------------------------------
shailesh@shaileshpanchal:~/ac494eToolchain/linux-2.6.10_dev-malta-mips2_fp_len>
make ram_zimage
  CHK     include/linux/version.h
make[1]: `arch/mips/kernel/offset.s' is up to date.
  CHK     include/asm-mips/offset.h
  CHK     include/linux/compile.h
  CHK     usr/initramfs_list
  CC      fs/yaffs2/yaffs_vfs.o
fs/yaffs2/yaffs_vfs.c:168:27: linux/uaccess.h: No such file or directory
In file included from fs/yaffs2/yaffs_vfs.c:176:
fs/yaffs2/yaffs_linux.h:27: error: field `gross_lock' has incomplete type
fs/yaffs2/yaffs_vfs.c: In function `yaffs_gross_lock':
fs/yaffs2/yaffs_vfs.c:260: warning: implicit declaration of function
`mutex_lock'
fs/yaffs2/yaffs_vfs.c: In function `yaffs_gross_unlock':
fs/yaffs2/yaffs_vfs.c:267: warning: implicit declaration of function
`mutex_unlock'
fs/yaffs2/yaffs_vfs.c: In function `yaffs_writepage':
fs/yaffs2/yaffs_vfs.c:427: warning: implicit declaration of function
`zero_user_segment'
fs/yaffs2/yaffs_vfs.c: At top level:
fs/yaffs2/yaffs_vfs.c:823: error: conflicting types for 'zero_user_segment'
fs/yaffs2/yaffs_vfs.c:427: error: previous implicit declaration of
'zero_user_segment' was here
fs/yaffs2/yaffs_vfs.c: In function `yaffs_follow_link':
fs/yaffs2/yaffs_vfs.c:1053: error: syntax error before "unsigned"
fs/yaffs2/yaffs_vfs.c:1059: error: `alias' undeclared (first use in this
function)
fs/yaffs2/yaffs_vfs.c:1059: error: (Each undeclared identifier is reported
only once
fs/yaffs2/yaffs_vfs.c:1059: error: for each function it appears in.)
fs/yaffs2/yaffs_vfs.c:1074: error: `ret' undeclared (first use in this
function)
fs/yaffs2/yaffs_vfs.c: In function `yaffs_rename':
fs/yaffs2/yaffs_vfs.c:1532: warning: implicit declaration of function
`inode_dec_link_count'
fs/yaffs2/yaffs_vfs.c: In function `yaffs_fill_inode_from_obj':
fs/yaffs2/yaffs_vfs.c:1980: warning: assignment discards qualifiers from
pointer target type
fs/yaffs2/yaffs_vfs.c:1981: warning: assignment discards qualifiers from
pointer target type
fs/yaffs2/yaffs_vfs.c:1986: warning: assignment discards qualifiers from
pointer target type
fs/yaffs2/yaffs_vfs.c:1987: warning: assignment discards qualifiers from
pointer target type
fs/yaffs2/yaffs_vfs.c:1990: warning: assignment discards qualifiers from
pointer target type
fs/yaffs2/yaffs_vfs.c: In function `yaffs_flush_inodes':
fs/yaffs2/yaffs_vfs.c:2184: error: structure has no member named `i_sb_list'
fs/yaffs2/yaffs_vfs.c:2184: warning: type defaults to `int' in declaration
of `__mptr'
fs/yaffs2/yaffs_vfs.c:2184: error: structure has no member named `s_inodes'
fs/yaffs2/yaffs_vfs.c:2184: error: structure has no member named `i_sb_list'
fs/yaffs2/yaffs_vfs.c:2184: error: structure has no member named `i_sb_list'
fs/yaffs2/yaffs_vfs.c:2184: warning: left-hand operand of comma expression
has no effect
fs/yaffs2/yaffs_vfs.c:2184: error: structure has no member named `i_sb_list'
fs/yaffs2/yaffs_vfs.c:2184: error: structure has no member named `s_inodes'
fs/yaffs2/yaffs_vfs.c:2184: error: structure has no member named `i_sb_list'
fs/yaffs2/yaffs_vfs.c:2184: warning: type defaults to `int' in declaration
of `__mptr'
fs/yaffs2/yaffs_vfs.c:2184: error: structure has no member named `i_sb_list'
fs/yaffs2/yaffs_vfs.c:2184: error: structure has no member named `i_sb_list'
fs/yaffs2/yaffs_vfs.c:2184: error: structure has no member named `i_sb_list'
fs/yaffs2/yaffs_vfs.c:2184: warning: left-hand operand of comma expression
has no effect
fs/yaffs2/yaffs_vfs.c: At top level:
fs/yaffs2/yaffs_vfs.c:2638: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_vfs.c:2640: warning: initialization from incompatible
pointer type
fs/yaffs2/yaffs_vfs.c: In function `yaffs_internal_read_super':
fs/yaffs2/yaffs_vfs.c:2774: warning: assignment discards qualifiers from
pointer target type
fs/yaffs2/yaffs_vfs.c:2982: warning: implicit declaration of function
`mutex_init'
fs/yaffs2/yaffs_vfs.c:3010: warning: assignment discards qualifiers from
pointer target type
fs/yaffs2/yaffs_vfs.c:3011: warning: assignment discards qualifiers from
pointer target type
fs/yaffs2/yaffs_vfs.c: At top level:
fs/yaffs2/yaffs_vfs.c:2209: error: storage size of `yaffs_context_lock'
isn't known
fs/yaffs2/yaffs_vfs.c:478: warning: 'yaffs_hold_space' defined but not used
fs/yaffs2/yaffs_vfs.c:498: warning: 'yaffs_release_space' defined but not
used
fs/yaffs2/yaffs_vfs.c:823: warning: 'zero_user_segment' defined but not used
make[2]: *** [fs/yaffs2/yaffs_vfs.o] Error 1
make[1]: *** [fs/yaffs2] Error 2
make: *** [fs] Error 2
shailesh@shaileshpanchal:~/ac494eToolchain/linux-2.6.10_dev-malta-mips2_fp_len>


--------------------------------------------------------------------


Regards,
Shailesh Panchal