Fix compilation on Ubuntu 14.10
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 3 Oct 2014 19:58:02 +0000 (15:58 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 20 Oct 2014 18:58:48 +0000 (14:58 -0400)
Extend the range introduced in 2260bfd to also include Ubuntu's
3.16 kernel. The API-changing patch was also backported to that series.
This will also be required for Trusty users once the the Utopic
hardware-enablement stack, including that 3.16 kernel, comes in.

Refs #838. See comment #2 for the patch in question.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-statedump-impl.c

index d2cf8a3f099686e7e12d208ba1e6c4b41a637f96..cf92aa44689a4587cc6ab4f0cd4cd441f4abb71b 100644 (file)
@@ -411,7 +411,8 @@ void lttng_statedump_process_ns(struct lttng_session *session,
         * for details.
         */
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0) || \
-               LTTNG_UBUNTU_KERNEL_RANGE(3,13,11,36, 3,14,0,0))
+               LTTNG_UBUNTU_KERNEL_RANGE(3,13,11,36, 3,14,0,0) || \
+               LTTNG_UBUNTU_KERNEL_RANGE(3,16,0,11, 3,17,0,0))
        proxy = p->nsproxy;
 #else
        rcu_read_lock();
@@ -429,7 +430,8 @@ void lttng_statedump_process_ns(struct lttng_session *session,
                        p, type, mode, submode, status, NULL);
        }
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0) || \
-               LTTNG_UBUNTU_KERNEL_RANGE(3,13,11,36, 3,14,0,0))
+               LTTNG_UBUNTU_KERNEL_RANGE(3,13,11,36, 3,14,0,0) || \
+               LTTNG_UBUNTU_KERNEL_RANGE(3,16,0,11, 3,17,0,0))
        /* (nothing) */
 #else
        rcu_read_unlock();
This page took 0.02922 seconds and 4 git commands to generate.