From 73dce209d3071e2d3344e854e7405c7e629fd8e4 Mon Sep 17 00:00:00 2001 From: acoul Date: Thu, 31 Mar 2016 07:58:06 +0300 Subject: [PATCH] linux/generic: update yaffs for kernel 4.4 --- .../patches-4.4/506-4.4-follow_link_fix.patch | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 target/linux/generic/patches-4.4/506-4.4-follow_link_fix.patch diff --git a/target/linux/generic/patches-4.4/506-4.4-follow_link_fix.patch b/target/linux/generic/patches-4.4/506-4.4-follow_link_fix.patch new file mode 100644 index 0000000000..4194ab25dc --- /dev/null +++ b/target/linux/generic/patches-4.4/506-4.4-follow_link_fix.patch @@ -0,0 +1,44 @@ +As what we did in commit 680baacbca69 ("new ->follow_link() and +->put_link() calling conventions"). + +Signed-off-by: Kevin Hao +--- + fs/yaffs2/yaffs_vfs.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/fs/yaffs2/yaffs_vfs.c b/fs/yaffs2/yaffs_vfs.c +index 0a3e9da..1494c8f 100644 +--- a/fs/yaffs2/yaffs_vfs.c ++++ b/fs/yaffs2/yaffs_vfs.c +@@ -1060,7 +1060,7 @@ static int yaffs_readlink(struct dentry *dentry, char __user * buffer, + } + + #if (YAFFS_NEW_FOLLOW_LINK == 1) +-static void *yaffs_follow_link(struct dentry *dentry, struct nameidata *nd) ++static const char *yaffs_follow_link(struct dentry *dentry, void **cookie) + { + void *ret; + #else +@@ -1082,7 +1082,7 @@ static int yaffs_follow_link(struct dentry *dentry, struct nameidata *nd) + goto out; + } + #if (YAFFS_NEW_FOLLOW_LINK == 1) +- nd_set_link(nd, alias); ++ *cookie = alias; + ret = alias; + out: + if (ret_int) +@@ -1114,9 +1114,9 @@ static void yaffs_put_inode(struct inode *inode) + #endif + + #if (YAFFS_NEW_FOLLOW_LINK == 1) +-void yaffs_put_link(struct dentry *dentry, struct nameidata *nd, void *alias) ++void yaffs_put_link(struct inode *inode, void *cookie) + { +- kfree(alias); ++ kfree(cookie); + } + #endif + +-- +1.9.1 -- 2.35.1