X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Fsplice.c;h=2ecc98f38bf706eea4ef476fc99c7b4ae85ae85e;hb=2bf9218e860dc384419eda9ebdf561d86f38a85e;hp=44a4d6b87b2b8062b571ed6270b4556006e8572a;hpb=9f36eaed6f91d5897924b551b44d1edd8cee00e2;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