summaryrefslogtreecommitdiff
path: root/fs/file_table.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-06-17 14:21:27 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2018-07-12 10:04:29 -0400
commitee1904ba44bd4a242b453e8fe179b374906da173 (patch)
treee46eab4aac323da76a546f0d8137e0b963802803 /fs/file_table.c
parent4f089acc5f76ab1dff17b5f0be7608671a8441dc (diff)
downloadlwn-ee1904ba44bd4a242b453e8fe179b374906da173.tar.gz
lwn-ee1904ba44bd4a242b453e8fe179b374906da173.zip
make alloc_file() static
Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/file_table.c')
-rw-r--r--fs/file_table.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/file_table.c b/fs/file_table.c
index 78b067ddb386..d6eccd04d703 100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -157,7 +157,7 @@ over:
* @flags: O_... flags with which the new file will be opened
* @fop: the 'struct file_operations' for the new file
*/
-struct file *alloc_file(const struct path *path, int flags,
+static struct file *alloc_file(const struct path *path, int flags,
const struct file_operations *fop)
{
struct file *file;
@@ -182,7 +182,6 @@ struct file *alloc_file(const struct path *path, int flags,
i_readcount_inc(path->dentry->d_inode);
return file;
}
-EXPORT_SYMBOL(alloc_file);
struct file *alloc_file_pseudo(struct inode *inode, struct vfsmount *mnt,
const char *name, int flags,