From 86d39f4f5fdbdf6e676d54db6755b7a85f06bf92 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 9 May 2024 15:46:21 -0400 Subject: [PATCH] splice wrapper: Fix missing declaration Include the splice wrapper header within the splice.c implementation to prevent missing declaration warnings. Signed-off-by: Mathieu Desnoyers Change-Id: Ib62f7f575324aa3268d76fb38c39ef70257155ef --- include/wrapper/splice.h | 1 + src/wrapper/splice.c | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/wrapper/splice.h b/include/wrapper/splice.h index a42bd6fb..894a08cf 100644 --- a/include/wrapper/splice.h +++ b/include/wrapper/splice.h @@ -13,6 +13,7 @@ #define _LTTNG_WRAPPER_SPLICE_H #include +#include ssize_t wrapper_splice_to_pipe(struct pipe_inode_info *pipe, struct splice_pipe_desc *spd); diff --git a/src/wrapper/splice.c b/src/wrapper/splice.c index 4292260c..e820d171 100644 --- a/src/wrapper/splice.c +++ b/src/wrapper/splice.c @@ -10,13 +10,14 @@ */ #include +#include +#include +#include #if (defined(CONFIG_KALLSYMS) \ && (LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(4,2,0))) #include -#include -#include #include static @@ -53,9 +54,6 @@ ssize_t __canary__splice_to_pipe(struct pipe_inode_info *pipe, #else -#include -#include - ssize_t wrapper_splice_to_pipe(struct pipe_inode_info *pipe, struct splice_pipe_desc *spd) { -- 2.34.1