From: "Josef 'Jeff' Sipek" Signed-off-by: Josef 'Jeff' Sipek Cc: Al Viro Cc: Christoph Hellwig Cc: Trond Myklebust Cc: Neil Brown Cc: Michael Halcrow Signed-off-by: Andrew Morton --- fs/namei.c | 4 +++- include/linux/namei.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff -puN fs/namei.c~fs-mark-link_path_walk-static fs/namei.c --- a/fs/namei.c~fs-mark-link_path_walk-static +++ a/fs/namei.c @@ -107,6 +107,8 @@ * any extra contention... */ +static int fastcall link_path_walk(const char *name, struct nameidata *nd); + /* In order to reduce some races, while at the same time doing additional * checking and hopefully speeding things up, we copy filenames to the * kernel data space before using them.. @@ -998,7 +1000,7 @@ return_err: * Retry the whole path once, forcing real lookup requests * instead of relying on the dcache. */ -int fastcall link_path_walk(const char *name, struct nameidata *nd) +static int fastcall link_path_walk(const char *name, struct nameidata *nd) { struct nameidata save = *nd; int result; diff -puN include/linux/namei.h~fs-mark-link_path_walk-static include/linux/namei.h --- a/include/linux/namei.h~fs-mark-link_path_walk-static +++ a/include/linux/namei.h @@ -73,7 +73,6 @@ extern int FASTCALL(path_lookup(const ch extern int vfs_path_lookup(struct dentry *, struct vfsmount *, const char *, unsigned int, struct nameidata *); extern int FASTCALL(path_walk(const char *, struct nameidata *)); -extern int FASTCALL(link_path_walk(const char *, struct nameidata *)); extern void path_release(struct nameidata *); extern void path_release_on_umount(struct nameidata *); _