Fix: is_compat_task !CONFIG_COMPAT compile error on kernels >= 3.3
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 26 Mar 2012 15:09:30 +0000 (11:09 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 26 Mar 2012 15:09:30 +0000 (11:09 -0400)
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 <dgoulet@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-syscalls.c

index ebf32f8ed3274ad7ce90ec14e59a64df23ca390d..37feffbe43c1a90319c2ed2cef161b4e6f5ade74 100644 (file)
 #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
This page took 0.025883 seconds and 4 git commands to generate.