From: Adrian Bunk As announced, lookup_hash() can now become static. Signed-off-by: Adrian Bunk Cc: Christoph Hellwig Signed-off-by: Andrew Morton --- Documentation/feature-removal-schedule.txt | 6 ------ fs/namei.c | 3 +-- include/linux/namei.h | 1 - 3 files changed, 1 insertion(+), 9 deletions(-) diff -puN Documentation/feature-removal-schedule.txt~fs-nameic-make-lookup_hash-static Documentation/feature-removal-schedule.txt --- devel/Documentation/feature-removal-schedule.txt~fs-nameic-make-lookup_hash-static 2006-03-11 02:51:07.000000000 -0800 +++ devel-akpm/Documentation/feature-removal-schedule.txt 2006-03-11 02:51:07.000000000 -0800 @@ -117,13 +117,6 @@ Who: Harald Welte - ---------------------------- - What: CONFIG_FORCED_INLINING When: June 2006 Why: Config option is there to see if gcc is good enough. (in january diff -puN fs/namei.c~fs-nameic-make-lookup_hash-static fs/namei.c --- devel/fs/namei.c~fs-nameic-make-lookup_hash-static 2006-03-11 02:51:07.000000000 -0800 +++ devel-akpm/fs/namei.c 2006-03-11 02:51:07.000000000 -0800 @@ -1256,7 +1256,7 @@ out: return dentry; } -struct dentry * lookup_hash(struct nameidata *nd) +static struct dentry *lookup_hash(struct nameidata *nd) { return __lookup_hash(&nd->last, nd->dentry, nd); } @@ -2687,7 +2687,6 @@ EXPORT_SYMBOL(follow_up); EXPORT_SYMBOL(get_write_access); /* binfmt_aout */ EXPORT_SYMBOL(getname); EXPORT_SYMBOL(lock_rename); -EXPORT_SYMBOL(lookup_hash); EXPORT_SYMBOL(lookup_one_len); EXPORT_SYMBOL(page_follow_link_light); EXPORT_SYMBOL(page_put_link); diff -puN include/linux/namei.h~fs-nameic-make-lookup_hash-static include/linux/namei.h --- devel/include/linux/namei.h~fs-nameic-make-lookup_hash-static 2006-03-11 02:51:07.000000000 -0800 +++ devel-akpm/include/linux/namei.h 2006-03-11 02:51:07.000000000 -0800 @@ -75,7 +75,6 @@ extern struct file *nameidata_to_filp(st extern void release_open_intent(struct nameidata *); extern struct dentry * lookup_one_len(const char *, struct dentry *, int); -extern __deprecated_for_modules struct dentry * lookup_hash(struct nameidata *); extern int follow_down(struct vfsmount **, struct dentry **); extern int follow_up(struct vfsmount **, struct dentry **); _