X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-user-ns.c;h=f7ee3f913234c9ecc7de246488e5b385e4317182;hb=6be48c9f6a32cdcab9824aaad0c19f92222633c4;hp=ab9afa4edade5c9fe47cfb52cb3cfc37e81e7385;hpb=93e5bcec1d8d550a1983bbc013248dbd83573cc7;p=lttng-modules.git diff --git a/src/lttng-context-user-ns.c b/src/lttng-context-user-ns.c index ab9afa4e..f7ee3f91 100644 --- a/src/lttng-context-user-ns.c +++ b/src/lttng-context-user-ns.c @@ -9,6 +9,8 @@ * */ +#ifdef CONFIG_USER_NS + #include #include #include @@ -19,9 +21,6 @@ #include #include -#if defined(CONFIG_USER_NS) && \ - (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0)) - static size_t user_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset) {