Commit 73efc468 authored by Roland Dreier's avatar Roland Dreier Committed by Linus Torvalds

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: default avatarRoland Dreier <rolandd@cisco.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a73611b6
...@@ -194,6 +194,7 @@ struct file *alloc_file(struct path *path, fmode_t mode, ...@@ -194,6 +194,7 @@ struct file *alloc_file(struct path *path, fmode_t mode,
ima_counts_get(file); ima_counts_get(file);
return file; return file;
} }
EXPORT_SYMBOL(alloc_file);
void fput(struct file *file) void fput(struct file *file)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment