splice wrapper: Fix missing declaration
[lttng-modules.git] / src / wrapper / splice.c
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.02417 seconds and 4 git commands to generate.