[PATCH 5/6] net/core: support compiling out splice

2014-11-23 Thread Pieter Smith
To implement splice support, net/core makes use of nosteal_pipe_buf_ops. This struct is exported by fs/splice. The goal of the larger patch set is to completely compile out fs/splice, so uses of the exported struct need to be compiled out along with fs/splice. This patch therefore compiles out

[PATCH 5/6] net/core: support compiling out splice

2014-11-23 Thread Pieter Smith
To implement splice support, net/core makes use of nosteal_pipe_buf_ops. This struct is exported by fs/splice. The goal of the larger patch set is to completely compile out fs/splice, so uses of the exported struct need to be compiled out along with fs/splice. This patch therefore compiles out

Re: [PATCH 5/6] net/core: support compiling out splice

2014-11-22 Thread Josh Triplett
[Please don't top-post.] On Sat, Nov 22, 2014 at 11:50:51PM +0100, Pieter Smith wrote: > splice exports a structure that is used by skbuf. Mocking out a function is > straightforward. To my knowledge there is no elegant way of mocking out a > splice_operations struct. I directly modified the code

Re: [PATCH 5/6] net/core: support compiling out splice

2014-11-22 Thread Josh Triplett
On Sat, Nov 22, 2014 at 10:00:00PM +0100, Pieter Smith wrote: > Compile out splice support from networking core when the splice-family of > syscalls is not supported by the system (i.e. CONFIG_SYSCALL_SPLICE is > undefined). Please explain in the commit message why this particular bit of splice

[PATCH 5/6] net/core: support compiling out splice

2014-11-22 Thread Pieter Smith
Compile out splice support from networking core when the splice-family of syscalls is not supported by the system (i.e. CONFIG_SYSCALL_SPLICE is undefined). Signed-off-by: Pieter Smith --- include/linux/skbuff.h | 9 + net/core/skbuff.c | 9 ++--- 2 files changed, 15

[PATCH 5/6] net/core: support compiling out splice

2014-11-22 Thread Pieter Smith
Compile out splice support from networking core when the splice-family of syscalls is not supported by the system (i.e. CONFIG_SYSCALL_SPLICE is undefined). Signed-off-by: Pieter Smith pie...@boesman.nl --- include/linux/skbuff.h | 9 + net/core/skbuff.c | 9 ++--- 2 files

Re: [PATCH 5/6] net/core: support compiling out splice

2014-11-22 Thread Josh Triplett
On Sat, Nov 22, 2014 at 10:00:00PM +0100, Pieter Smith wrote: Compile out splice support from networking core when the splice-family of syscalls is not supported by the system (i.e. CONFIG_SYSCALL_SPLICE is undefined). Please explain in the commit message why this particular bit of splice

Re: [PATCH 5/6] net/core: support compiling out splice

2014-11-22 Thread Josh Triplett
[Please don't top-post.] On Sat, Nov 22, 2014 at 11:50:51PM +0100, Pieter Smith wrote: splice exports a structure that is used by skbuf. Mocking out a function is straightforward. To my knowledge there is no elegant way of mocking out a splice_operations struct. I directly modified the code to