lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 25 Nov 2014 00:01:03 +0100
From:	Pieter Smith <>
Cc:	Josh Triplett <>,
	Alexander Duyck <>,
	Alexander Viro <>,
	Alexei Starovoitov <>,
	Andrew Morton <>,
	Bertrand Jacquin <>,
	Catalina Mocanu <>,
	Daniel Borkmann <>,
	"David S. Miller" <>,
	Eric Dumazet <>,
	"Eric W. Biederman" <>,
	Fabian Frederick <>, (open list:FUSE: FILESYSTEM...),
	Geert Uytterhoeven <>,
	Hugh Dickins <>,
	Iulia Manda <>,
	Jan Beulich <>,
	"J. Bruce Fields" <>,
	Jeff Layton <>, (open list:ABI/API),, (open list), (open list:KERNEL NFSD, SUNR...),
	"Luis R. Rodriguez" <>,
	Matt Turner <>, Mel Gorman <>,
	"Michael S. Tsirkin" <>,
	Miklos Szeredi <>, (open list:NETWORKING [GENERAL]),
	Oleg Nesterov <>,
	Paul Durrant <>,
	"Paul E. McKenney" <>,
	Peter Foley <>,
	Thomas Graf <>, Tom Herbert <>,
	Trond Myklebust <>,
	Willem de Bruijn <>,
	Xiao Guangrong <>,
	蔡正龙 <>
Subject: [PATCH v4 4/7] fs/fuse: support compiling out splice

To implement splice support, fs/fuse 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 splice support in fs/fuse when

Signed-off-by: Pieter Smith <>
 fs/fuse/dev.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index ca88731..e984302 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -1191,8 +1191,9 @@ __releases(fc->lock)
  * request_end().  Otherwise add it to the processing list, and set
  * the 'sent' flag.
-static ssize_t fuse_dev_do_read(struct fuse_conn *fc, struct file *file,
-				struct fuse_copy_state *cs, size_t nbytes)
+static ssize_t __maybe_unused
+fuse_dev_do_read(struct fuse_conn *fc, struct file *file,
+		 struct fuse_copy_state *cs, size_t nbytes)
 	int err;
 	struct fuse_req *req;
@@ -1291,6 +1292,7 @@ static ssize_t fuse_dev_read(struct kiocb *iocb, const struct iovec *iov,
 	return fuse_dev_do_read(fc, file, &cs, iov_length(iov, nr_segs));
 static ssize_t fuse_dev_splice_read(struct file *in, loff_t *ppos,
 				    struct pipe_inode_info *pipe,
 				    size_t len, unsigned int flags)
@@ -1368,6 +1370,9 @@ out:
 	return ret;
+#define fuse_dev_splice_read NULL
 static int fuse_notify_poll(struct fuse_conn *fc, unsigned int size,
 			    struct fuse_copy_state *cs)

To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists