* re-export alloc_file()
@ 2009-12-16 20:43 Roland Dreier
0 siblings, 0 replies; only message in thread
From: Roland Dreier @ 2009-12-16 20:43 UTC (permalink / raw)
To: torvalds, linux-kernel; +Cc: Al Viro
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>
---
fs/file_table.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/file_table.c b/fs/file_table.c
index 17a55b8..0afacf6 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)
{
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-16 20:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-16 20:43 re-export alloc_file() Roland Dreier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox