我用的是linux2.6.32版本的内核,按照友善提供的内核移植手册,挺顺利的,但是在为内核打上文件yaffs2的补丁时没问题,却编译的时候出现了狠多问题,一开始不打补丁编译通过,打了补丁之后编译不行了具体看下面的fs/yaffs2/yaffs_fs.c:212: error: unknown field 'prepare_write' specified in initializer
fs/yaffs2/yaffs_fs.c:212: warning: initialization from incompatible pointer type
fs/yaffs2/yaffs_fs.c:213: error: unknown field 'commit_write' specified in initializer
fs/yaffs2/yaffs_fs.c:213: warning: initialization from incompatible pointer type
fs/yaffs2/yaffs_fs.c:287: error: unknown field 'read_inode' specified in initializer
fs/yaffs2/yaffs_fs.c:287: warning: initialization from incompatible pointer type
fs/yaffs2/yaffs_fs.c:288: error: unknown field 'put_inode' specified in initializer
fs/yaffs2/yaffs_fs.c: In function 'yaffs_get_inode':
fs/yaffs2/yaffs_fs.c:847: error: implicit declaration of function 'iget'
fs/yaffs2/yaffs_fs.c:847: warning: assignment makes pointer from integer without a cast
fs/yaffs2/yaffs_fs.c: In function 'yaffs_mknod':
fs/yaffs2/yaffs_fs.c:1021: error: 'struct task_struct' has no member named 'fsuid'
fs/yaffs2/yaffs_fs.c:1022: error: 'struct task_struct' has no member named 'fsgid'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_symlink':
fs/yaffs2/yaffs_fs.c:1201: error: 'struct task_struct' has no member named 'fsuid'
fs/yaffs2/yaffs_fs.c:1202: error: 'struct task_struct' has no member named 'fsgid'
fs/yaffs2/yaffs_fs.c: In function 'yaffs_internal_read_super':
fs/yaffs2/yaffs_fs.c:1676: warning: format '%d' expects type 'int', but argument 2 has type 'uint64_t'
fs/yaffs2/yaffs_fs.c: In function 'init_yaffs_fs':
fs/yaffs2/yaffs_fs.c:2234: error: 'proc_root' undeclared (first use in this function)
fs/yaffs2/yaffs_fs.c:2234: error: (Each undeclared identifier is reported only once
fs/yaffs2/yaffs_fs.c:2234: error: for each function it appears in.)
fs/yaffs2/yaffs_fs.c: In function 'exit_yaffs_fs':
fs/yaffs2/yaffs_fs.c:2280: error: 'proc_root' undeclared (first use in this function)
make[2]: *** [fs/yaffs2/yaffs_fs.o] Error 1
make[1]: *** [fs/yaffs2] Error 2
make: *** [fs] Error 2
求版主分析下啊,怎么解决