X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=wrapper%2Fsplice.c;h=96fdf1d03ffff0aa09a2efea02bb45ae7cec24d7;hb=5b4ea313ddc10d96388a20a42e118c758479a553;hp=d7ef83d8a2c98443336d05ed8c0c32709d6be882;hpb=1e543e7c292839b931f808ad341c85f24a859d00;p=lttng-modules.git diff --git a/wrapper/splice.c b/wrapper/splice.c index d7ef83d8..96fdf1d0 100644 --- 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 - * 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