From: Michael Jeanson Date: Fri, 18 Nov 2022 22:00:31 +0000 (-0500) Subject: Drop support for kernels < 4.4 from 'wrapper/splice.h' X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0e5e973df5;p=lttng-modules.git Drop support for kernels < 4.4 from 'wrapper/splice.h' Change-Id: I7dfcb85e2d0195fd21523646cbdf938f526a3c1e Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/wrapper/splice.h b/include/wrapper/splice.h index a42bd6fb..93b6f650 100644 --- a/include/wrapper/splice.h +++ b/include/wrapper/splice.h @@ -17,8 +17,4 @@ ssize_t wrapper_splice_to_pipe(struct pipe_inode_info *pipe, struct splice_pipe_desc *spd); -#ifndef PIPE_DEF_BUFFERS -#define PIPE_DEF_BUFFERS 16 -#endif - #endif /* _LTTNG_WRAPPER_SPLICE_H */ diff --git a/src/wrapper/splice.c b/src/wrapper/splice.c index 4292260c..51b9673f 100644 --- a/src/wrapper/splice.c +++ b/src/wrapper/splice.c @@ -11,8 +11,7 @@ #include -#if (defined(CONFIG_KALLSYMS) \ - && (LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(4,2,0))) +#ifdef CONFIG_KALLSYMS #include #include