1 --- a/fs/yaffs2/yaffs_vfs_glue.c
2 +++ b/fs/yaffs2/yaffs_vfs_glue.c
3 @@ -3119,7 +3119,11 @@ static struct super_block *yaffs_interna
5 T(YAFFS_TRACE_OS, (TSTR("yaffs_read_super: got root inode\n")));
7 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 4, 0))
8 + root = d_make_root(inode);
10 root = d_alloc_root(inode);
13 T(YAFFS_TRACE_OS, (TSTR("yaffs_read_super: d_alloc_root done\n")));