From b0af7adf85c6d6b0d30ea8f83a830211748c2429 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 13 Apr 2020 16:42:22 -0400 Subject: [PATCH] context cgroup ns: remove compatibility code --- lttng-context-cgroup-ns.c | 4 +--- lttng-events.h | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lttng-context-cgroup-ns.c b/lttng-context-cgroup-ns.c index 188c1d44..82245011 100644 --- a/lttng-context-cgroup-ns.c +++ b/lttng-context-cgroup-ns.c @@ -17,9 +17,7 @@ #include #include -#if defined(CONFIG_CGROUPS) && \ - ((LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) || \ - LTTNG_UBUNTU_KERNEL_RANGE(4,4,0,0, 4,5,0,0)) +#if defined(CONFIG_CGROUPS) static size_t cgroup_ns_get_size(size_t offset) diff --git a/lttng-events.h b/lttng-events.h index dc1bd0e6..05309174 100644 --- a/lttng-events.h +++ b/lttng-events.h @@ -721,9 +721,7 @@ int lttng_add_migratable_to_ctx(struct lttng_ctx **ctx) int lttng_add_callstack_to_ctx(struct lttng_ctx **ctx, int type); -#if defined(CONFIG_CGROUPS) && \ - ((LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) || \ - LTTNG_UBUNTU_KERNEL_RANGE(4,4,0,0, 4,5,0,0)) +#if defined(CONFIG_CGROUPS) int lttng_add_cgroup_ns_to_ctx(struct lttng_ctx **ctx); #else static inline -- 2.34.1