[lttng-dev] [PATCH 07/15] fs/splice: export splice_to_pipe to modules

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Thu Dec 1 15:18:03 EST 2011


* Greg KH (greg at kroah.com) wrote:
> On Wed, Nov 30, 2011 at 01:34:20PM -0500, Mathieu Desnoyers wrote:
> > LTTng needs this symbol exported because it implements its own splice
> > actor.
> > 
> > Exporting to all modules following the general policy of splice.c (this
> > is what other EXPORTs do in this file).
> > 
> > Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
> > ---
> >  fs/splice.c |    1 +
> >  1 files changed, 1 insertions(+), 0 deletions(-)
> > 
> > diff --git a/fs/splice.c b/fs/splice.c
> > index fa2defa..492585d 100644
> > --- a/fs/splice.c
> > +++ b/fs/splice.c
> > @@ -263,6 +263,7 @@ ssize_t splice_to_pipe(struct pipe_inode_info *pipe,
> >  
> >  	return ret;
> >  }
> > +EXPORT_SYMBOL(splice_to_pipe);
> 
> Why not EXPORT_SYMBOL_GPL()?

Because all other exported symbols in splice.c are "EXPORT_SYMBOL", as I
wrote in the changelog above.

compudj at thinkos:~/git/linux/fs$ grep EXPORT_SYMBOL_GPL splice.c
compudj at thinkos:~/git/linux/fs$ grep EXPORT_SYMBOL splice.c
EXPORT_SYMBOL(generic_file_splice_read);
EXPORT_SYMBOL(default_file_splice_read);
EXPORT_SYMBOL(pipe_to_file);
EXPORT_SYMBOL(splice_from_pipe_feed);
EXPORT_SYMBOL(splice_from_pipe_next);
EXPORT_SYMBOL(splice_from_pipe_begin);
EXPORT_SYMBOL(splice_from_pipe_end);
EXPORT_SYMBOL(__splice_from_pipe);
EXPORT_SYMBOL(generic_file_splice_write);
EXPORT_SYMBOL(generic_splice_sendpage);
EXPORT_SYMBOL(splice_direct_to_actor);

So is it better to follow the other exports or use a GPL export here ?

> 
> And again, it needs the correct acks from the maintainers of this code
> first.

Will do, no problem.

Thanks!

Mathieu

> 
> thanks,
> 
> greg k-h

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list