From: Alexandre Montplaisir Date: Fri, 3 Oct 2014 19:58:02 +0000 (-0400) Subject: Fix compilation on Ubuntu 14.10 X-Git-Tag: v2.6.0-rc1~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a5c47aa6bbdbe53efb15afb608173193cffcab3d;p=lttng-modules.git Fix compilation on Ubuntu 14.10 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 Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-statedump-impl.c b/lttng-statedump-impl.c index bab5d9ff..e0d74f6f 100644 --- a/lttng-statedump-impl.c +++ b/lttng-statedump-impl.c @@ -412,7 +412,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(); @@ -430,7 +431,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();