Re: [Yaffs] fs/yaffs2/yaffs_vfs.c:286:29: error: ‘struct fi…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Geert Stappers
Date:  
To: yaffs
Subject: Re: [Yaffs] fs/yaffs2/yaffs_vfs.c:286:29: error: ‘struct file’ has no member named ‘f_dentry'
On Thu, Aug 13, 2015 at 09:57:36PM +0200, Geert Stappers wrote:
>
> 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’" ?
>


The OpenWRT got YAFFS compiling with Linux 4.1.
With commit 583dbd9cc2668870cb013f051ba59f7d3e513dae from 2015-06-02,
the same commit as where I had the trouble.

So let's asume that I was wrong. Thanks for your attention.


Cheers
Geert Stappers
--
Leven en laten leven