diff --git a/fs/fuse/file.c b/fs/fuse/file.c index c0e06234144c..76fe4846a62b 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -1843,9 +1843,9 @@ static ssize_t fuse_splice_read(struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags) { +#ifdef CONFIG_FUSE_BPF struct fuse_file *ff = in->private_data; -#ifdef CONFIG_FUSE_BPF /* TODO - this is simply passthrough, not a proper BPF filter */ if (ff->backing_file) return fuse_splice_read_backing(in, ppos, pipe, len, flags);