unexport simple_dname()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 20 May 2019 12:44:57 +0000 (13:44 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 21 May 2019 07:23:41 +0000 (08:23 +0100)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/d_path.c
fs/internal.h
include/linux/dcache.h

index e8fce6b..a7d0a96 100644 (file)
@@ -316,7 +316,6 @@ char *simple_dname(struct dentry *dentry, char *buffer, int buflen)
                end = ERR_PTR(-ENAMETOOLONG);
        return end;
 }
-EXPORT_SYMBOL(simple_dname);
 
 /*
  * Write full pathname from the root of the filesystem into the buffer.
index 0010889..1ac2b8f 100644 (file)
@@ -160,6 +160,7 @@ extern int d_set_mounted(struct dentry *dentry);
 extern long prune_dcache_sb(struct super_block *sb, struct shrink_control *sc);
 extern struct dentry *d_alloc_cursor(struct dentry *);
 extern struct dentry * d_alloc_pseudo(struct super_block *, const struct qstr *);
+extern char *simple_dname(struct dentry *, char *, int);
 
 /*
  * read_write.c
index f14e587..361305d 100644 (file)
@@ -291,7 +291,6 @@ static inline unsigned d_count(const struct dentry *dentry)
  */
 extern __printf(4, 5)
 char *dynamic_dname(struct dentry *, char *, int, const char *, ...);
-extern char *simple_dname(struct dentry *, char *, int);
 
 extern char *__d_path(const struct path *, const struct path *, char *, int);
 extern char *d_absolute_path(const struct path *, char *, int);