mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 12:11:26 +00:00
scst: RHEL 5 build fix for file_inode()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6238 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -282,11 +282,12 @@ static inline void hex2bin(u8 *dst, const char *src, size_t count)
|
||||
!defined(CONFIG_COMPAT_KERNEL_3_12)
|
||||
/*
|
||||
* See also patch "new helper: file_inode(file)" (commit ID
|
||||
* 496ad9aa8ef448058e36ca7a787c61f2e63f0f54).
|
||||
* 496ad9aa8ef448058e36ca7a787c61f2e63f0f54). See also patch
|
||||
* "kill f_dentry macro" (commit ID 78d28e651f97).
|
||||
*/
|
||||
static inline struct inode *file_inode(const struct file *f)
|
||||
{
|
||||
return f->f_path.dentry->d_inode;
|
||||
return f->f_dentry->d_inode;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user