projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: Move patches.i to include/generated/
[lttng-modules.git]
/
wrapper
/
splice.c
diff --git
a/wrapper/splice.c
b/wrapper/splice.c
index d7ef83d8a2c98443336d05ed8c0c32709d6be882..33e3aaa53b9bb08fdd5857f16819e6775085e0ed 100644
(file)
--- a/
wrapper/splice.c
+++ b/
wrapper/splice.c
@@
-1,15
+1,18
@@
-/* SPDX-License-Identifier: (GPL-2.0
or LGPL-2.1
)
+/* SPDX-License-Identifier: (GPL-2.0
-only or LGPL-2.1-only
)
*
* wrapper/splice.c
*
* wrapper around splice_to_pipe. Using KALLSYMS to get its address when
* available, else we need to have a kernel that exports this function to GPL
*
* wrapper/splice.c
*
* wrapper around splice_to_pipe. Using KALLSYMS to get its address when
* available, else we need to have a kernel that exports this function to GPL
- * modules.
+ * modules.
The export was introduced in kernel 4.2.
*
* Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
*
* Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
-#ifdef CONFIG_KALLSYMS
+#include <lttng/kernel-version.h>
+
+#if (defined(CONFIG_KALLSYMS) \
+ && (LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0)))
#include <linux/kallsyms.h>
#include <linux/fs.h>
#include <linux/kallsyms.h>
#include <linux/fs.h>
This page took
0.026617 seconds
and
4
git commands to generate.