splice wrapper: Fix missing declaration
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 May 2024 19:46:21 +0000 (15:46 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 May 2024 19:46:21 +0000 (15:46 -0400)
Include the splice wrapper header within the splice.c implementation to
prevent missing declaration warnings.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ib62f7f575324aa3268d76fb38c39ef70257155ef

include/wrapper/splice.h
src/wrapper/splice.c

index a42bd6fb821dcc36476f947aa2667a2e745672ec..894a08cf48c372df83e77324138a52285cebf9e6 100644 (file)
@@ -13,6 +13,7 @@
 #define _LTTNG_WRAPPER_SPLICE_H
 
 #include <linux/splice.h>
+#include <linux/fs.h>
 
 ssize_t wrapper_splice_to_pipe(struct pipe_inode_info *pipe,
                               struct splice_pipe_desc *spd);
index 4292260c32d887d13fe22d21fe32feabacd71a48..e820d17134df03df9bdc2aff3c7c868a98727a68 100644 (file)
  */
 
 #include <lttng/kernel-version.h>
+#include <linux/fs.h>
+#include <linux/splice.h>
+#include <wrapper/splice.h>
 
 #if (defined(CONFIG_KALLSYMS) \
        && (LTTNG_LINUX_VERSION_CODE < LTTNG_KERNEL_VERSION(4,2,0)))
 
 #include <linux/kallsyms.h>
-#include <linux/fs.h>
-#include <linux/splice.h>
 #include <wrapper/kallsyms.h>
 
 static
@@ -53,9 +54,6 @@ ssize_t __canary__splice_to_pipe(struct pipe_inode_info *pipe,
 
 #else
 
-#include <linux/fs.h>
-#include <linux/splice.h>
-
 ssize_t wrapper_splice_to_pipe(struct pipe_inode_info *pipe,
                               struct splice_pipe_desc *spd)
 {
This page took 0.026768 seconds and 4 git commands to generate.