X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Fsplice.c;h=44a4d6b87b2b8062b571ed6270b4556006e8572a;hb=c994b2df91f004b4ae1af9c240e113987ce03626;hp=65f0d711d31c06212869abb7974426d02a5c1e6f;hpb=711e321294c8df600f3901669c5709a56dc54863;p=lttng-modules.git diff --git a/wrapper/splice.c b/wrapper/splice.c index 65f0d711..44a4d6b8 100644 --- a/wrapper/splice.c +++ b/wrapper/splice.c @@ -1,11 +1,12 @@ -/* - * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com) +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + * + * 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. * - * Dual LGPL v2.1/GPL v2 license. + * Copyright (C) 2011-2012 Mathieu Desnoyers */ #ifdef CONFIG_KALLSYMS @@ -13,7 +14,7 @@ #include #include #include -#include "kallsyms.h" +#include static ssize_t (*splice_to_pipe_sym)(struct pipe_inode_info *pipe, @@ -27,7 +28,7 @@ ssize_t wrapper_splice_to_pipe(struct pipe_inode_info *pipe, if (splice_to_pipe_sym) { return splice_to_pipe_sym(pipe, spd); } else { - printk(KERN_WARNING "LTTng: splice_to_pipe symbol lookup failed.\n"); + printk_once(KERN_WARNING "LTTng: splice_to_pipe symbol lookup failed.\n"); return -ENOSYS; } }