X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Fsplice.c;h=282bd863e2cb849ec57ec4336c43539d7a495858;hb=60c64030e811165e62a62eb551459dd2416d6ec2;hp=2ecc98f38bf706eea4ef476fc99c7b4ae85ae85e;hpb=3bcb1fb34fc8904413476afd87afbdeab3806e56;p=lttng-modules.git diff --git a/wrapper/splice.c b/wrapper/splice.c index 2ecc98f3..282bd863 100644 --- a/wrapper/splice.c +++ b/wrapper/splice.c @@ -36,6 +36,21 @@ ssize_t wrapper_splice_to_pipe(struct pipe_inode_info *pipe, } } +/* + * Canary function to check for 'splice_to_pipe()' at compile time. + * + * From 'include/linux/splice.h': + * + * extern ssize_t splice_to_pipe(struct pipe_inode_info *, + * struct splice_pipe_desc *spd); + */ +__attribute__((unused)) static +ssize_t __canary__splice_to_pipe(struct pipe_inode_info *pipe, + struct splice_pipe_desc *spd) +{ + return splice_to_pipe(pipe, spd); +} + #else #include