From: Michael Jeanson Date: Tue, 23 May 2017 19:45:47 +0000 (-0400) Subject: Fix: update ringbuffer for kernel 4.12 X-Git-Tag: v2.8.6~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=dac37842e887c0e3e3356b3bc98b874f6d7c1ff2;p=lttng-modules.git Fix: update ringbuffer for kernel 4.12 flags removed from splice_pipe_desc in 4.12. See upstream commit f81dc7d7d5a2528f98f26a0b9406e822d0b35011 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/lib/ringbuffer/ring_buffer_splice.c b/lib/ringbuffer/ring_buffer_splice.c index 0610caaf..8d146667 100644 --- a/lib/ringbuffer/ring_buffer_splice.c +++ b/lib/ringbuffer/ring_buffer_splice.c @@ -95,7 +95,9 @@ static int subbuf_splice_actor(struct file *in, .pages = pages, .nr_pages = 0, .partial = partial, +#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,12,0)) .flags = flags, +#endif .ops = &ring_buffer_pipe_buf_ops, .spd_release = lib_ring_buffer_page_release, };