[PATCH v7 7/8] fs/pipe.c: export create_pipe_files()

From: Jarkko Sakkinen
Date: Wed Dec 06 2017 - 20:58:47 EST


Exported create_pipe_files() because the SGX driver needs to be able to
setup pipes for communicating with the helper process that hosts the
Launch Enclave (LE). The pipe creation will be done in the init-callback
supplied to call_usermodehelper_setup().

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>
---
Could be removed if LE is moved to arch.
fs/pipe.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/fs/pipe.c b/fs/pipe.c
index 6d98566201ef..4846886b0530 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -785,6 +785,7 @@ int create_pipe_files(struct file **res, int flags)
iput(inode);
return err;
}
+EXPORT_SYMBOL_GPL(create_pipe_files);

static int __do_pipe_flags(int *fd, struct file **files, int flags)
{
--
2.14.1