1 From 415a1a678cb2fcf603f9777f2c7b71c1e38f8101 Mon Sep 17 00:00:00 2001
2 From: Bruce Ashfield <bruce.ashfield@windriver.com>
3 Date: Mon, 19 Mar 2012 13:30:31 -0400
4 Subject: [PATCH] lttng-sycalls: protect is_compat_task from redefinition
6 recent -stable kernels have their own fallback definition of is_compat_task
8 #define is_compat_task() (0)
10 To protect against this double definition of is_compat_task we can check
11 to see if it is already defined, and skip the lttng variant.
13 Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
15 lttng-syscalls.c | 4 ++++
16 1 files changed, 4 insertions(+), 0 deletions(-)
18 diff --git a/lttng-syscalls.c b/lttng-syscalls.c
19 index 9de3c07..80d0f05 100644
20 --- a/lttng-syscalls.c
21 +++ b/lttng-syscalls.c
23 #include "ltt-events.h"
27 +#ifndef is_compat_task
28 static inline int is_compat_task(void)
37 void syscall_entry_probe(void *__data, struct pt_regs *regs, long id);