From: Mathieu Desnoyers Date: Thu, 9 May 2024 19:46:21 +0000 (-0400) Subject: splice wrapper: Fix missing declaration X-Git-Tag: v2.13.13~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=86d39f4f5fdbdf6e676d54db6755b7a85f06bf92;p=lttng-modules.git 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 --- 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) {