Hi Laurie,

On Thu, Aug 11, 2011 at 3:42 PM, Laurie van Someren <laurie@aleph1.co.uk> wrote:
Lei,
You may get a useful reply more quickly if you tell people what version of YAFFS (and date) you are using, what version of what OS, and details about the Flash chips and block size.
You know all these; your readers do not.
I can offer no other help, I am afraid.
LvS


On Thu, 2011-08-11 at 15:33 +0800, Lei Wen wrote:
Hi,

Is anyone get the 3.0 kernel yaffs build succeed?
The error message I got is like:
fs/yaffs2/yaffs_vfs.c:46:28: error: linux/smp_lock.h: No such file or directory
fs/yaffs2/yaffs_vfs.c: In function 'yaffs_read_super':
fs/yaffs2/yaffs_vfs.c:2383: error: implicit declaration of function
'get_sb_bdev'
fs/yaffs2/yaffs_vfs.c: At top level:
fs/yaffs2/yaffs_vfs.c:2390: error: unknown field 'get_sb' specified in
initializer
fs/yaffs2/yaffs_vfs.c:2390: warning: initialization makes integer from
pointer without a cast
fs/yaffs2/yaffs_vfs.c:2414: error: unknown field 'get_sb' specified in
initializer
fs/yaffs2/yaffs_vfs.c:2414: warning: initialization makes integer from
pointer without a cast

Any idea?

Thanks,
Lei
Thanks for your quick reply.
The kernel I got is from: http://android.git.kernel.org/?p=kernel/common.git;a=shortlog;h=refs/heads/android-3.0
And it is based on linux kernel 3.0. Due to the kernel vfs change, and the yaffs part in that git seems don't contain such change, which
cause the build failure.

This is just build issue, and no related with any flash chip.

Thanks,
Lei