diff mbox series

[2/4] file: export __fd_install()

Message ID 20180730143710.14413-3-christian@brauner.io (mailing list archive)
State New, archived
Headers show
Series file: export functions for binder module | expand

Commit Message

Christian Brauner July 30, 2018, 2:37 p.m. UTC
The Android binder driver will be turned into a module. Since it
uses __fd_install() we need to export this function.

Signed-off-by: Christian Brauner <christian@brauner.io>
Cc: Todd Kjos <tkjos@android.com>
Cc: Robert Love <rlove@google.com>
Cc: Ben Hutching <ben@decadent.org.uk>
Cc: Martijn Coenen <maco@android.com>
Cc: Arve Hjønnevåg <arve@android.com>
---
 fs/file.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Christoph Hellwig July 30, 2018, 4:32 p.m. UTC | #1
On Mon, Jul 30, 2018 at 04:37:08PM +0200, Christian Brauner wrote:
> The Android binder driver will be turned into a module. Since it
> uses __fd_install() we need to export this function.

Same as the previous one.  No driver should be pooking this deep
into fd internals (not even non-modular ones for that matter).
diff mbox series

Patch

diff --git a/fs/file.c b/fs/file.c
index 90382c3ac6e7..b1ffa7acff69 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -607,6 +607,7 @@  void __fd_install(struct files_struct *files, unsigned int fd,
 	rcu_assign_pointer(fdt->fd[fd], file);
 	rcu_read_unlock_sched();
 }
+EXPORT_SYMBOL(__fd_install);
 
 void fd_install(unsigned int fd, struct file *file)
 {