From: Mathieu Desnoyers Date: Mon, 13 Apr 2020 20:42:22 +0000 (-0400) Subject: context cgroup ns: remove compatibility code X-Git-Tag: for-upstreaming-review-1~38 X-Git-Url: http://git.liburcu.org/?p=lttng-modules.git;a=commitdiff_plain;h=b0af7adf85c6d6b0d30ea8f83a830211748c2429 context cgroup ns: remove compatibility code --- 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