mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christian Ruppert <christian.ruppert@abilis.com>
To: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
	Christian Ruppert <christian.ruppert@abilis.com>
Subject: [PATCH] Export symbols for splice in modules
Date: Tue,  8 Oct 2013 14:38:18 +0200	[thread overview]
Message-ID: <1381235898-24186-1-git-send-email-christian.ruppert@abilis.com> (raw)

The symbols splice_to_pipe, splice_grow_spd and splice_shrink_spd are not
currently exported from the kernel. This prevents the implementation of
drivers using splice in modules not statically linked with the kernel. This
patch exports those symbols to make it possible to implement splice in
kernel modules.

Signed-off-by: Christian Ruppert <christian.ruppert@abilis.com>
---
 fs/splice.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/fs/splice.c b/fs/splice.c
index 3b7ee65..28e19b7 100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -265,6 +265,7 @@ ssize_t splice_to_pipe(struct pipe_inode_info *pipe,
 
 	return ret;
 }
+EXPORT_SYMBOL(splice_to_pipe);
 
 void spd_release_page(struct splice_pipe_desc *spd, unsigned int i)
 {
@@ -293,6 +294,7 @@ int splice_grow_spd(const struct pipe_inode_info *pipe, struct splice_pipe_desc
 	kfree(spd->partial);
 	return -ENOMEM;
 }
+EXPORT_SYMBOL(splice_grow_spd);
 
 void splice_shrink_spd(struct splice_pipe_desc *spd)
 {
@@ -302,6 +304,7 @@ void splice_shrink_spd(struct splice_pipe_desc *spd)
 	kfree(spd->pages);
 	kfree(spd->partial);
 }
+EXPORT_SYMBOL(splice_shrink_spd);
 
 static int
 __generic_file_splice_read(struct file *in, loff_t *ppos,
-- 
1.7.1


             reply	other threads:[~2013-10-08 12:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-08 12:38 Christian Ruppert [this message]
2013-10-08 12:52 ` Christoph Hellwig
2013-10-08 13:09   ` Christian Ruppert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1381235898-24186-1-git-send-email-christian.ruppert@abilis.com \
    --to=christian.ruppert@abilis.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®