当前位置: 技术问答>linux和unix
加入yaffs2,编译内核显示error: unknown field `prepare_write' specified in initializer
来源: 互联网 发布时间:2016-10-07
本文导语: In file included from include/linux/kobject.h:21, from include/linux/module.h:16, from fs/yaffs2/yaffs_fs.c:43: include/linux/sysfs.h:183: warning: parameter has incomplete type fs/yaffs2/yaffs_fs.c:200: e...
In file included from include/linux/kobject.h:21,
from include/linux/module.h:16,
from fs/yaffs2/yaffs_fs.c:43:
include/linux/sysfs.h:183: warning: parameter has incomplete type
fs/yaffs2/yaffs_fs.c:200: error: unknown field `prepare_write' specified in initializer
fs/yaffs2/yaffs_fs.c:200: warning: initialization from incompatible pointer type
fs/yaffs2/yaffs_fs.c:201: error: unknown field `commit_write' specified in initializer
fs/yaffs2/yaffs_fs.c:201: warning: initialization from incompatible pointer type
fs/yaffs2/yaffs_fs.c:216: warning: initialization from incompatible pointer type
fs/yaffs2/yaffs_fs.c:218: error: unknown field `sendfile' specified in initializer
fs/yaffs2/yaffs_fs.c:218: error: `generic_file_sendfile' undeclared here (not in a function)
fs/yaffs2/yaffs_fs.c:218: error: initializer element is not constant
fs/yaffs2/yaffs_fs.c:218: error: (near initialization for `yaffs_file_operations.aio_fsync')
fs/yaffs2/yaffs_fs.c:249: warning: initialization from incompatible pointer type
fs/yaffs2/yaffs_fs.c:254: error: unknown field `read_inode' specified in initializer
fs/yaffs2/yaffs_fs.c:254: warning: initialization from incompatible pointer type
fs/yaffs2/yaffs_fs.c:255: error: unknown field `put_inode' specified in initializer
fs/yaffs2/yaffs_fs.c: In function `yaffs_get_inode':
fs/yaffs2/yaffs_fs.c:815: error: implicit declaration of function `iget'
fs/yaffs2/yaffs_fs.c:815: warning: assignment makes pointer from integer without a cast
fs/yaffs2/yaffs_fs.c: In function `yaffs_mknod':
fs/yaffs2/yaffs_fs.c:989: error: dereferencing pointer to incomplete type
fs/yaffs2/yaffs_fs.c:990: error: dereferencing pointer to incomplete type
fs/yaffs2/yaffs_fs.c: In function `yaffs_symlink':
fs/yaffs2/yaffs_fs.c:1169: error: dereferencing pointer to incomplete type
fs/yaffs2/yaffs_fs.c:1170: error: dereferencing pointer to incomplete type
fs/yaffs2/yaffs_fs.c: In function `yaffs_internal_read_super':
fs/yaffs2/yaffs_fs.c:1581: warning: int format, different type arg (arg 2)
fs/yaffs2/yaffs_fs.c: In function `init_yaffs_fs':
fs/yaffs2/yaffs_fs.c:2106: error: `proc_root' undeclared (first use in this function)
fs/yaffs2/yaffs_fs.c:2106: error: (Each undeclared identifier is reported only once
fs/yaffs2/yaffs_fs.c:2106: error: for each function it appears in.)
fs/yaffs2/yaffs_fs.c: In function `exit_yaffs_fs':
fs/yaffs2/yaffs_fs.c:2152: error: `proc_root' undeclared (first use in this function)
make[2]: *** [fs/yaffs2/yaffs_fs.o] 错误 1
make[1]: *** [fs/yaffs2] 错误 2
make: *** [f
请问一下怎么解决~~
from include/linux/module.h:16,
from fs/yaffs2/yaffs_fs.c:43:
include/linux/sysfs.h:183: warning: parameter has incomplete type
fs/yaffs2/yaffs_fs.c:200: error: unknown field `prepare_write' specified in initializer
fs/yaffs2/yaffs_fs.c:200: warning: initialization from incompatible pointer type
fs/yaffs2/yaffs_fs.c:201: error: unknown field `commit_write' specified in initializer
fs/yaffs2/yaffs_fs.c:201: warning: initialization from incompatible pointer type
fs/yaffs2/yaffs_fs.c:216: warning: initialization from incompatible pointer type
fs/yaffs2/yaffs_fs.c:218: error: unknown field `sendfile' specified in initializer
fs/yaffs2/yaffs_fs.c:218: error: `generic_file_sendfile' undeclared here (not in a function)
fs/yaffs2/yaffs_fs.c:218: error: initializer element is not constant
fs/yaffs2/yaffs_fs.c:218: error: (near initialization for `yaffs_file_operations.aio_fsync')
fs/yaffs2/yaffs_fs.c:249: warning: initialization from incompatible pointer type
fs/yaffs2/yaffs_fs.c:254: error: unknown field `read_inode' specified in initializer
fs/yaffs2/yaffs_fs.c:254: warning: initialization from incompatible pointer type
fs/yaffs2/yaffs_fs.c:255: error: unknown field `put_inode' specified in initializer
fs/yaffs2/yaffs_fs.c: In function `yaffs_get_inode':
fs/yaffs2/yaffs_fs.c:815: error: implicit declaration of function `iget'
fs/yaffs2/yaffs_fs.c:815: warning: assignment makes pointer from integer without a cast
fs/yaffs2/yaffs_fs.c: In function `yaffs_mknod':
fs/yaffs2/yaffs_fs.c:989: error: dereferencing pointer to incomplete type
fs/yaffs2/yaffs_fs.c:990: error: dereferencing pointer to incomplete type
fs/yaffs2/yaffs_fs.c: In function `yaffs_symlink':
fs/yaffs2/yaffs_fs.c:1169: error: dereferencing pointer to incomplete type
fs/yaffs2/yaffs_fs.c:1170: error: dereferencing pointer to incomplete type
fs/yaffs2/yaffs_fs.c: In function `yaffs_internal_read_super':
fs/yaffs2/yaffs_fs.c:1581: warning: int format, different type arg (arg 2)
fs/yaffs2/yaffs_fs.c: In function `init_yaffs_fs':
fs/yaffs2/yaffs_fs.c:2106: error: `proc_root' undeclared (first use in this function)
fs/yaffs2/yaffs_fs.c:2106: error: (Each undeclared identifier is reported only once
fs/yaffs2/yaffs_fs.c:2106: error: for each function it appears in.)
fs/yaffs2/yaffs_fs.c: In function `exit_yaffs_fs':
fs/yaffs2/yaffs_fs.c:2152: error: `proc_root' undeclared (first use in this function)
make[2]: *** [fs/yaffs2/yaffs_fs.o] 错误 1
make[1]: *** [fs/yaffs2] 错误 2
make: *** [f
请问一下怎么解决~~
|
国家伟大的防火墙阿, 挡住了,所以访问不了www.yaffs.net
你的编译器版本有点低, 没加入 yaffs 以前,内核能编译通过吗?
你的编译器版本有点低, 没加入 yaffs 以前,内核能编译通过吗?
|
错误好多呢。
有没有给yaffs2打补丁?
同时你内核是什么版本的?
有没有给yaffs2打补丁?
同时你内核是什么版本的?