From: Mathieu Desnoyers Date: Mon, 26 Mar 2012 15:09:30 +0000 (-0400) Subject: Fix: is_compat_task !CONFIG_COMPAT compile error on kernels >= 3.3 X-Git-Tag: v2.0.1~1 X-Git-Url: http://git.lttng.org/?p=lttng-modules.git;a=commitdiff_plain;h=bfa949bf033f588fdd6f80ad8b50220ea153446e Fix: is_compat_task !CONFIG_COMPAT compile error on kernels >= 3.3 The Linux kernel already defines a is_compat_task() (0) when !CONFIG_COMPAT since kernel 3.3, so if we see it is already defined, don't redefine it. Closes #195 Reported-by: David Goulet Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-syscalls.c b/lttng-syscalls.c index ebf32f8e..37feffbe 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -29,10 +29,9 @@ #include "lttng-events.h" #ifndef CONFIG_COMPAT -static inline int is_compat_task(void) -{ - return 0; -} +# ifndef is_compat_task +# define is_compat_task() (0) +# endif #endif static