aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorRoland Dreier <rdreier@cisco.com>2009-12-16 15:43:11 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-16 16:29:19 -0500
commit73efc4681cb5e3c8807daf106f001e7f0798d8a0 (patch)
tree8302ec91e3410912081c8468b54e97acfae0ac95 /fs
parenta73611b6aafa3b902524dad2d68e378c4ec9f4db (diff)
re-export alloc_file()
Commit 3d1e4631 ("get rid of init_file()") removed the export of alloc_file() -- possibly inadvertently, since that commit mainly consisted of deleting the lines between the end of alloc_file() and the start of the code in init_file(). There is in fact one modular use of alloc_file() in the tree, in drivers/infiniband/core/uverbs_main.c, so re-add the export to fix: ERROR: "alloc_file" [drivers/infiniband/core/ib_uverbs.ko] undefined! when CONFIG_INFINIBAND_USER_ACCESS=m. Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Roland Dreier <rolandd@cisco.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/file_table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/file_table.c b/fs/file_table.c
index 17a55b81be2d..0afacf654398 100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -194,6 +194,7 @@ struct file *alloc_file(struct path *path, fmode_t mode,
194 ima_counts_get(file); 194 ima_counts_get(file);
195 return file; 195 return file;
196} 196}
197EXPORT_SYMBOL(alloc_file);
197 198
198void fput(struct file *file) 199void fput(struct file *file)
199{ 200{