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 | 3 +-- include/linux/namei.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff -puN fs/namei.c~fs-remove-path_walk-export fs/namei.c --- a/fs/namei.c~fs-remove-path_walk-export +++ a/fs/namei.c @@ -1024,7 +1024,7 @@ static int fastcall link_path_walk(const return result; } -int fastcall path_walk(const char * name, struct nameidata *nd) +static int fastcall path_walk(const char * name, struct nameidata *nd) { current->total_link_count = 0; return link_path_walk(name, nd); @@ -2787,7 +2787,6 @@ EXPORT_SYMBOL(page_symlink_inode_operati EXPORT_SYMBOL(path_lookup); EXPORT_SYMBOL(vfs_path_lookup); EXPORT_SYMBOL(path_release); -EXPORT_SYMBOL(path_walk); EXPORT_SYMBOL(permission); EXPORT_SYMBOL(vfs_permission); EXPORT_SYMBOL(file_permission); diff -puN include/linux/namei.h~fs-remove-path_walk-export include/linux/namei.h --- a/include/linux/namei.h~fs-remove-path_walk-export +++ a/include/linux/namei.h @@ -72,7 +72,6 @@ extern int FASTCALL(__user_walk_fd(int d extern int FASTCALL(path_lookup(const char *, unsigned, struct nameidata *)); 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 void path_release(struct nameidata *); extern void path_release_on_umount(struct nameidata *); _