[Yaffs] fs/yaffs2/yaffs_vfs.c:286:29: error: ‘struct file’ h…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Geert Stappers
Date:  
To: yaffs
Subject: [Yaffs] fs/yaffs2/yaffs_vfs.c:286:29: error: ‘struct file’ has no member named ‘f_dentry'

Hello YAFFS2 people,

I have trouble with getting yaffs compiled for linux 4.1.

Error message is:

  CC [M]  fs/yaffs2/yaffs_vfs.o
fs/yaffs2/yaffs_vfs.c: In function ‘yaffs_readpage_nolock’:
fs/yaffs2/yaffs_vfs.c:286:29: error: ‘struct file’ has no member named ‘f_dentry’
  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);



In OpenWRT is the same error encountered ( https://dev.openwrt.org/ticket/20323 )


Should YAFFS2 work with Linux >= 4.0 ?
If so, how? In other words:
How to get beyond: "error: ‘struct file’ has no member named ‘f_dentry’" ?


Regards
Geert Stappers
--
Leven en laten leven