Skip to content

in linux5.8 error #1

@loulansuiye

Description

@loulansuiye

fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_readpage_nolock’:
fs/yaffs2/yaffs_vfs.c:278:39: error: ‘PAGE_CACHE_SHIFT’ undeclared (first use in this function); did you mean ‘L1_CACHE_SHIFT’?
loff_t pos = ((loff_t) pg->index) << PAGE_CACHE_SHIFT;
^~~~~~~~~~~~~~~~
L1_CACHE_SHIFT
fs/yaffs2/yaffs_vfs.c:278:39: note: each undeclared identifier is reported only once for each function it appears in
In file included from fs/yaffs2/yaffs_vfs.c:171:0:
fs/yaffs2/yaffs_vfs.c:284:13: error: ‘PAGE_CACHE_SIZE’ undeclared (first use in this function); did you mean ‘PAGE_CACHE_SHIFT’?
(unsigned)PAGE_CACHE_SIZE);
^
fs/yaffs2/yportenv.h:81:43: note: in definition of macro ‘yaffs_trace’
printk(KERN_DEBUG "yaffs: " fmt "\n", ##VA_ARGS);
^~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:286:31: error: ‘struct file’ has no member named ‘f_dentry’; did you mean ‘f_owner’?
obj = yaffs_dentry_to_obj(f->f_dentry);
^
fs/yaffs2/yaffs_vfs.c:218:39: note: in definition of macro ‘yaffs_inode_to_obj_lv’
#define yaffs_inode_to_obj_lv(iptr) ((iptr)->i_private)
^~~~
fs/yaffs2/yaffs_vfs.c:225:35: note: in expansion of macro ‘yaffs_inode_to_obj’
#define yaffs_dentry_to_obj(dptr) yaffs_inode_to_obj((dptr)->d_inode)
^~~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:286:8: note: in expansion of macro ‘yaffs_dentry_to_obj’
obj = yaffs_dentry_to_obj(f->f_dentry);
^~~~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_writepage’:
fs/yaffs2/yaffs_vfs.c:412:24: error: ‘PAGE_CACHE_SHIFT’ undeclared (first use in this function); did you mean ‘L1_CACHE_SHIFT’?
end_index = i_size >> PAGE_CACHE_SHIFT;
^~~~~~~~~~~~~~~~
L1_CACHE_SHIFT
fs/yaffs2/yaffs_vfs.c:415:13: error: ‘PAGE_CACHE_SIZE’ undeclared (first use in this function); did you mean ‘PAGE_CACHE_SHIFT’?
n_bytes = PAGE_CACHE_SIZE;
^~~~~~~~~~~~~~~
PAGE_CACHE_SHIFT
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_hold_space’:
fs/yaffs2/yaffs_vfs.c:484:31: error: ‘struct file’ has no member named ‘f_dentry’; did you mean ‘f_owner’?
obj = yaffs_dentry_to_obj(f->f_dentry);
^
fs/yaffs2/yaffs_vfs.c:218:39: note: in definition of macro ‘yaffs_inode_to_obj_lv’
#define yaffs_inode_to_obj_lv(iptr) ((iptr)->i_private)
^~~~
fs/yaffs2/yaffs_vfs.c:225:35: note: in expansion of macro ‘yaffs_inode_to_obj’
#define yaffs_dentry_to_obj(dptr) yaffs_inode_to_obj((dptr)->d_inode)
^~~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:484:8: note: in expansion of macro ‘yaffs_dentry_to_obj’
obj = yaffs_dentry_to_obj(f->f_dentry);
^~~~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_release_space’:
fs/yaffs2/yaffs_vfs.c:502:31: error: ‘struct file’ has no member named ‘f_dentry’; did you mean ‘f_owner’?
obj = yaffs_dentry_to_obj(f->f_dentry);
^
fs/yaffs2/yaffs_vfs.c:218:39: note: in definition of macro ‘yaffs_inode_to_obj_lv’
#define yaffs_inode_to_obj_lv(iptr) ((iptr)->i_private)
^~~~
fs/yaffs2/yaffs_vfs.c:225:35: note: in expansion of macro ‘yaffs_inode_to_obj’
#define yaffs_dentry_to_obj(dptr) yaffs_inode_to_obj((dptr)->d_inode)
^~~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:502:8: note: in expansion of macro ‘yaffs_dentry_to_obj’
obj = yaffs_dentry_to_obj(f->f_dentry);
^~~~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_write_begin’:
fs/yaffs2/yaffs_vfs.c:517:25: error: ‘PAGE_CACHE_SHIFT’ undeclared (first use in this function); did you mean ‘L1_CACHE_SHIFT’?
pgoff_t index = pos >> PAGE_CACHE_SHIFT;
^~~~~~~~~~~~~~~~
L1_CACHE_SHIFT
fs/yaffs2/yaffs_vfs.c:566:3: error: implicit declaration of function ‘page_cache_release’; did you mean ‘pagecache_get_page’? [-Werror=implicit-function-declaration]
page_cache_release(pg);
^~~~~~~~~~~~~~~~~~
pagecache_get_page
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_file_write’:
fs/yaffs2/yaffs_vfs.c:594:31: error: ‘struct file’ has no member named ‘f_dentry’; did you mean ‘f_owner’?
obj = yaffs_dentry_to_obj(f->f_dentry);
^
fs/yaffs2/yaffs_vfs.c:218:39: note: in definition of macro ‘yaffs_inode_to_obj_lv’
#define yaffs_inode_to_obj_lv(iptr) ((iptr)->i_private)
^~~~
fs/yaffs2/yaffs_vfs.c:225:35: note: in expansion of macro ‘yaffs_inode_to_obj’
#define yaffs_dentry_to_obj(dptr) yaffs_inode_to_obj((dptr)->d_inode)
^~~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:594:8: note: in expansion of macro ‘yaffs_dentry_to_obj’
obj = yaffs_dentry_to_obj(f->f_dentry);
^~~~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:606:13: error: ‘struct file’ has no member named ‘f_dentry’; did you mean ‘f_owner’?
inode = f->f_dentry->d_inode;
^~~~~~~~
f_owner
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_write_end’:
fs/yaffs2/yaffs_vfs.c:650:37: error: ‘PAGE_CACHE_SIZE’ undeclared (first use in this function); did you mean ‘VMACACHE_SIZE’?
uint32_t offset_into_page = pos & (PAGE_CACHE_SIZE - 1);
^~~~~~~~~~~~~~~
VMACACHE_SIZE
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_file_flush’:
fs/yaffs2/yaffs_vfs.c:730:52: error: ‘struct file’ has no member named ‘f_dentry’; did you mean ‘f_owner’?
struct yaffs_obj *obj = yaffs_dentry_to_obj(file->f_dentry);
^
fs/yaffs2/yaffs_vfs.c:218:39: note: in definition of macro ‘yaffs_inode_to_obj_lv’
#define yaffs_inode_to_obj_lv(iptr) ((iptr)->i_private)
^~~~
fs/yaffs2/yaffs_vfs.c:225:35: note: in expansion of macro ‘yaffs_inode_to_obj’
#define yaffs_dentry_to_obj(dptr) yaffs_inode_to_obj((dptr)->d_inode)
^~~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:730:26: note: in expansion of macro ‘yaffs_dentry_to_obj’
struct yaffs_obj *obj = yaffs_dentry_to_obj(file->f_dentry);
^~~~~~~~~~~~~~~~~~~
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: At top level:
fs/yaffs2/yaffs_vfs.c:779:10: error: ‘do_sync_read’ undeclared here (not in a function); did you mean ‘down_read’?
.read = do_sync_read,
^~~~~~~~~~~~
down_read
fs/yaffs2/yaffs_vfs.c:780:11: error: ‘do_sync_write’ undeclared here (not in a function); did you mean ‘do_sync_read’?
.write = do_sync_write,
^~~~~~~~~~~~~
do_sync_read
fs/yaffs2/yaffs_vfs.c:781:3: error: ‘const struct file_operations’ has no member named ‘aio_read’; did you mean ‘read’?
.aio_read = generic_file_aio_read,
^~~~~~~~
read
fs/yaffs2/yaffs_vfs.c:781:14: error: ‘generic_file_aio_read’ undeclared here (not in a function); did you mean ‘generic_file_splice_read’?
.aio_read = generic_file_aio_read,
^~~~~~~~~~~~~~~~~~~~~
generic_file_splice_read
fs/yaffs2/yaffs_vfs.c:781:14: error: positional initialization of field in ‘struct’ declared with ‘designated_init’ attribute [-Werror=designated-init]
fs/yaffs2/yaffs_vfs.c:781:14: note: (near initialization for ‘yaffs_file_operations’)
fs/yaffs2/yaffs_vfs.c:782:3: error: ‘const struct file_operations’ has no member named ‘aio_write’; did you mean ‘write’?
.aio_write = generic_file_aio_write,
^~~~~~~~~
write
fs/yaffs2/yaffs_vfs.c:782:15: error: ‘generic_file_aio_write’ undeclared here (not in a function); did you mean ‘generic_file_aio_read’?
.aio_write = generic_file_aio_write,
^~~~~~~~~~~~~~~~~~~~~~
generic_file_aio_read
fs/yaffs2/yaffs_vfs.c:782:15: error: positional initialization of field in ‘struct’ declared with ‘designated_init’ attribute [-Werror=designated-init]
fs/yaffs2/yaffs_vfs.c:782:15: note: (near initialization for ‘yaffs_file_operations’)
fs/yaffs2/yaffs_vfs.c:787:18: error: ‘generic_file_splice_write’ undeclared here (not in a function); did you mean ‘generic_file_splice_read’?
.splice_write = generic_file_splice_write,
^~~~~~~~~~~~~~~~~~~~~~~~~
generic_file_splice_read
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_setattr’:
fs/yaffs2/yaffs_vfs.c:872:11: error: implicit declaration of function ‘inode_change_ok’; did you mean ‘inode_newsize_ok’? [-Werror=implicit-function-declaration]
error = inode_change_ok(inode, attr);
^~~~~~~~~~~~~~~
inode_newsize_ok
fs/yaffs2/yaffs_vfs.c: At top level:
fs/yaffs2/yaffs_vfs.c:1011:3: error: ‘const struct inode_operations’ has no member named ‘setxattr’; did you mean ‘setattr’?
.setxattr = yaffs_setxattr,
^~~~~~~~
setattr
fs/yaffs2/yaffs_vfs.c:1011:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.setxattr = yaffs_setxattr,
^~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1011:14: note: (near initialization for ‘yaffs_file_inode_operations.getattr’)
fs/yaffs2/yaffs_vfs.c:1012:3: error: ‘const struct inode_operations’ has no member named ‘getxattr’; did you mean ‘getattr’?
.getxattr = yaffs_getxattr,
^~~~~~~~
getattr
fs/yaffs2/yaffs_vfs.c:1012:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.getxattr = yaffs_getxattr,
^~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1012:14: note: (near initialization for ‘yaffs_file_inode_operations.listxattr’)
fs/yaffs2/yaffs_vfs.c:1014:3: error: ‘const struct inode_operations’ has no member named ‘removexattr’
.removexattr = yaffs_removexattr,
^~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1014:17: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.removexattr = yaffs_removexattr,
^~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1014:17: note: (near initialization for ‘yaffs_file_inode_operations.fiemap’)
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_follow_link’:
fs/yaffs2/yaffs_vfs.c:1067:2: error: implicit declaration of function ‘nd_set_link’; did you mean ‘nd_jump_link’? [-Werror=implicit-function-declaration]
nd_set_link(nd, alias);
^~~~~~~~~~~
nd_jump_link
fs/yaffs2/yaffs_vfs.c: At top level:
fs/yaffs2/yaffs_vfs.c:1107:3: error: ‘const struct inode_operations’ has no member named ‘follow_link’
.follow_link = yaffs_follow_link,
^~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1107:17: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.follow_link = yaffs_follow_link,
^~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1107:17: note: (near initialization for ‘yaffs_symlink_inode_operations.create’)
fs/yaffs2/yaffs_vfs.c:1109:3: error: ‘const struct inode_operations’ has no member named ‘put_link’; did you mean ‘get_link’?
.put_link = yaffs_put_link,
^~~~~~~~
get_link
fs/yaffs2/yaffs_vfs.c:1109:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.put_link = yaffs_put_link,
^~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1109:14: note: (near initialization for ‘yaffs_symlink_inode_operations.link’)
fs/yaffs2/yaffs_vfs.c:1112:3: error: ‘const struct inode_operations’ has no member named ‘setxattr’; did you mean ‘setattr’?
.setxattr = yaffs_setxattr,
^~~~~~~~
setattr
fs/yaffs2/yaffs_vfs.c:1112:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.setxattr = yaffs_setxattr,
^~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1112:14: note: (near initialization for ‘yaffs_symlink_inode_operations.getattr’)
fs/yaffs2/yaffs_vfs.c:1113:3: error: ‘const struct inode_operations’ has no member named ‘getxattr’; did you mean ‘getattr’?
.getxattr = yaffs_getxattr,
^~~~~~~~
getattr
fs/yaffs2/yaffs_vfs.c:1113:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.getxattr = yaffs_getxattr,
^~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1113:14: note: (near initialization for ‘yaffs_symlink_inode_operations.listxattr’)
fs/yaffs2/yaffs_vfs.c:1115:3: error: ‘const struct inode_operations’ has no member named ‘removexattr’
.removexattr = yaffs_removexattr,
^~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1115:17: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.removexattr = yaffs_removexattr,
^~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1115:17: note: (near initialization for ‘yaffs_symlink_inode_operations.fiemap’)
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_mknod’:
fs/yaffs2/yaffs_vfs.c:250:38: error: ‘CURRENT_TIME’ undeclared (first use in this function); did you mean ‘Y_CURRENT_TIME’?
(dir)->i_ctime = (dir)->i_mtime = CURRENT_TIME;
^
fs/yaffs2/yaffs_vfs.c:1319:3: note: in expansion of macro ‘update_dir_time’
update_dir_time(dir);
^~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_link’:
fs/yaffs2/yaffs_vfs.c:250:38: error: ‘CURRENT_TIME’ undeclared (first use in this function); did you mean ‘Y_CURRENT_TIME’?
(dir)->i_ctime = (dir)->i_mtime = CURRENT_TIME;
^
fs/yaffs2/yaffs_vfs.c:1445:3: note: in expansion of macro ‘update_dir_time’
update_dir_time(dir);
^~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_symlink’:
fs/yaffs2/yaffs_vfs.c:250:38: error: ‘CURRENT_TIME’ undeclared (first use in this function); did you mean ‘Y_CURRENT_TIME’?
(dir)->i_ctime = (dir)->i_mtime = CURRENT_TIME;
^
fs/yaffs2/yaffs_vfs.c:1482:3: note: in expansion of macro ‘update_dir_time’
update_dir_time(dir);
^~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_rename’:
fs/yaffs2/yaffs_vfs.c:250:38: error: ‘CURRENT_TIME’ undeclared (first use in this function); did you mean ‘Y_CURRENT_TIME’?
(dir)->i_ctime = (dir)->i_mtime = CURRENT_TIME;
^
fs/yaffs2/yaffs_vfs.c:1534:3: note: in expansion of macro ‘update_dir_time’
update_dir_time(old_dir);
^~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_unlink’:
fs/yaffs2/yaffs_vfs.c:1564:17: error: wrong type argument to increment
dir->i_version++;
^~
fs/yaffs2/yaffs_vfs.c:250:38: error: ‘CURRENT_TIME’ undeclared (first use in this function); did you mean ‘Y_CURRENT_TIME’?
(dir)->i_ctime = (dir)->i_mtime = CURRENT_TIME;
^
fs/yaffs2/yaffs_vfs.c:1566:3: note: in expansion of macro ‘update_dir_time’
update_dir_time(dir);
^~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c: At top level:
fs/yaffs2/yaffs_vfs.c:1584:12: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.rename = yaffs_rename,
^~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1584:12: note: (near initialization for ‘yaffs_dir_inode_operations.rename’)
fs/yaffs2/yaffs_vfs.c:1586:3: error: ‘const struct inode_operations’ has no member named ‘setxattr’; did you mean ‘setattr’?
.setxattr = yaffs_setxattr,
^~~~~~~~
setattr
fs/yaffs2/yaffs_vfs.c:1586:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.setxattr = yaffs_setxattr,
^~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1586:14: note: (near initialization for ‘yaffs_dir_inode_operations.getattr’)
fs/yaffs2/yaffs_vfs.c:1587:3: error: ‘const struct inode_operations’ has no member named ‘getxattr’; did you mean ‘getattr’?
.getxattr = yaffs_getxattr,
^~~~~~~~
getattr
fs/yaffs2/yaffs_vfs.c:1587:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.getxattr = yaffs_getxattr,
^~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1587:14: note: (near initialization for ‘yaffs_dir_inode_operations.listxattr’)
fs/yaffs2/yaffs_vfs.c:1589:3: error: ‘const struct inode_operations’ has no member named ‘removexattr’
.removexattr = yaffs_removexattr,
^~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1589:17: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.removexattr = yaffs_removexattr,
^~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1589:17: note: (near initialization for ‘yaffs_dir_inode_operations.fiemap’)
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_iterate’:
fs/yaffs2/yaffs_vfs.c:1719:31: error: ‘struct file’ has no member named ‘f_dentry’; did you mean ‘f_owner’?
obj = yaffs_dentry_to_obj(f->f_dentry);
^
fs/yaffs2/yaffs_vfs.c:218:39: note: in definition of macro ‘yaffs_inode_to_obj_lv’
#define yaffs_inode_to_obj_lv(iptr) ((iptr)->i_private)
^~~~
fs/yaffs2/yaffs_vfs.c:225:35: note: in expansion of macro ‘yaffs_inode_to_obj’
#define yaffs_dentry_to_obj(dptr) yaffs_inode_to_obj((dptr)->d_inode)
^~~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:1719:8: note: in expansion of macro ‘yaffs_dentry_to_obj’
obj = yaffs_dentry_to_obj(f->f_dentry);
^~~~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_fill_inode_from_obj’:
fs/yaffs2/yaffs_vfs.c:1947:28: error: ‘time_t’ undeclared (first use in this function); did you mean ‘ktime_t’?
inode->i_atime.tv_sec = (time_t) (obj->yst_atime);
^~~~~~
ktime_t
fs/yaffs2/yaffs_vfs.c:1949:36: error: expected ‘;’ before ‘obj’
inode->i_mtime.tv_sec = (time_t) obj->yst_mtime;
^~~
fs/yaffs2/yaffs_vfs.c:1951:36: error: expected ‘;’ before ‘obj’
inode->i_ctime.tv_sec = (time_t) obj->yst_ctime;
^~~
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_bg_thread_fn’:
fs/yaffs2/yaffs_vfs.c:139:25: error: implicit declaration of function ‘init_timer_on_stack’; did you mean ‘__init_timer_on_stack’? [-Werror=implicit-function-declaration]
#define Y_INIT_TIMER(a) init_timer_on_stack(a)
^
fs/yaffs2/yaffs_vfs.c:2112:3: note: in expansion of macro ‘Y_INIT_TIMER’
Y_INIT_TIMER(&timer);
^~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c:2114:8: error: ‘struct timer_list’ has no member named ‘data’
timer.data = (unsigned long)current;
^
fs/yaffs2/yaffs_vfs.c:2115:18: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
timer.function = yaffs_background_waker;
^
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);
^~~~~~~~~~~~~~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_internal_read_super’:
fs/yaffs2/yaffs_vfs.c:2736:17: error: ‘MS_NOATIME’ undeclared (first use in this function); did you mean ‘S_NOATIME’?
sb->s_flags |= MS_NOATIME;
^~~~~~~~~~
S_NOATIME
fs/yaffs2/yaffs_vfs.c:2738:30: error: ‘MS_RDONLY’ undeclared (first use in this function); did you mean ‘IS_RDONLY’?
read_only = ((sb->s_flags & MS_RDONLY) != 0);
^~~~~~~~~
IS_RDONLY
fs/yaffs2/yaffs_vfs.c:2765:20: error: ‘PAGE_CACHE_SIZE’ undeclared (first use in this function); did you mean ‘VMACACHE_SIZE’?
sb->s_blocksize = PAGE_CACHE_SIZE;
^~~~~~~~~~~~~~~
VMACACHE_SIZE
fs/yaffs2/yaffs_vfs.c:2766:25: error: ‘PAGE_CACHE_SHIFT’ undeclared (first use in this function); did you mean ‘PAGE_CACHE_SIZE’?
sb->s_blocksize_bits = PAGE_CACHE_SHIFT;
^~~~~~~~~~~~~~~~
PAGE_CACHE_SIZE
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_proc_read’:
fs/yaffs2/yaffs_vfs.c:3214:37: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
"Multi-version YAFFS built:" DATE " " TIME
^~~~~~~~
fs/yaffs2/yaffs_vfs.c:3214:50: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
"Multi-version YAFFS built:" DATE " " TIME
^~~~~~~~
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_procfs_init’:
fs/yaffs2/yaffs_vfs.c:3528:9: error: passing argument 4 of ‘proc_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
&procfs_ops);
^
In file included from fs/yaffs2/yaffs_vfs.c:79:0:
./include/linux/proc_fs.h:107:24: note: expected ‘const struct proc_ops *’ but argument is of type ‘struct file_operations *’
struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops);
^~~~~~~~~~~
fs/yaffs2/yaffs_vfs.c: In function ‘init_yaffs_fs’:
fs/yaffs2/yaffs_vfs.c:3565:54: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
"yaffs built " DATE " " TIME " Installing.");
^
fs/yaffs2/yaffs_vfs.c:3565:54: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
fs/yaffs2/yaffs_vfs.c: In function ‘exit_yaffs_fs’:
fs/yaffs2/yaffs_vfs.c:3606:52: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
"yaffs built " DATE " " TIME " removing.");
^
fs/yaffs2/yaffs_vfs.c:3606:52: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:281: fs/yaffs2/yaffs_vfs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.build:497: fs/yaffs2] Error 2
make: *** [Makefile:1756: fs] Error 2
make: *** Waiting for unfinished jobs....
CC [M] kernel/kheaders.o

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions