From 73efc4681cb5e3c8807daf106f001e7f0798d8a0 Mon Sep 17 00:00:00 2001 From: Roland Dreier Date: Wed, 16 Dec 2009 12:43:11 -0800 Subject: [PATCH] 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 Signed-off-by: Roland Dreier Signed-off-by: Linus Torvalds --- fs/file_table.c | 1 + 1 file changed, 1 insertion(+) 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, ima_counts_get(file); return file; } +EXPORT_SYMBOL(alloc_file); void fput(struct file *file) { -- 2.34.1