X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Fsplice.c;h=2ecc98f38bf706eea4ef476fc99c7b4ae85ae85e;hb=39d1ce904a6584c0c8e27f8a9dbca7d370f2937f;hp=44a4d6b87b2b8062b571ed6270b4556006e8572a;hpb=a47f2a37282a08868611a307041bbc131d78e8dc;p=lttng-modules.git diff --git a/wrapper/splice.c b/wrapper/splice.c index 44a4d6b8..2ecc98f3 100644 --- a/wrapper/splice.c +++ b/wrapper/splice.c @@ -4,12 +4,15 @@ * * 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 */ -#ifdef CONFIG_KALLSYMS +#include + +#if (defined(CONFIG_KALLSYMS) \ + && (LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0))) #include #include