[-mm patch] fs/namei.c: make lookup_hash() static

From: Adrian Bunk
Date: Fri Feb 03 2006 - 16:03:00 EST


As announced, lookup_hash() can now become static.


Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---

Documentation/feature-removal-schedule.txt | 7 -------
fs/namei.c | 3 +--
include/linux/namei.h | 1 -
3 files changed, 1 insertion(+), 10 deletions(-)

--- linux-2.6.16-rc1-mm5-full/Documentation/feature-removal-schedule.txt.old 2006-02-03 16:44:06.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/Documentation/feature-removal-schedule.txt 2006-02-03 16:44:16.000000000 +0100
@@ -116,13 +116,6 @@

---------------------------

-What: EXPORT_SYMBOL(lookup_hash)
-When: January 2006
-Why: Too low-level interface. Use lookup_one_len or lookup_create instead.
-Who: Christoph Hellwig <hch@xxxxxx>
-
----------------------------
-
What: CONFIG_FORCED_INLINING
When: June 2006
Why: Config option is there to see if gcc is good enough. (in january
--- linux-2.6.16-rc1-mm5-full/include/linux/namei.h.old 2006-02-03 16:44:22.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/include/linux/namei.h 2006-02-03 16:44:26.000000000 +0100
@@ -75,7 +75,6 @@
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 **);
--- linux-2.6.16-rc1-mm5-full/fs/namei.c.old 2006-02-03 16:44:34.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/fs/namei.c 2006-02-03 16:44:46.000000000 +0100
@@ -1248,7 +1248,7 @@
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);
}
@@ -2661,7 +2661,6 @@
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);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/