X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Flttng-context-user-ns.c;h=f7ee3f913234c9ecc7de246488e5b385e4317182;hb=455d6bcc7c93a75c555c340fd8ab6c00edf68551;hp=ab9afa4edade5c9fe47cfb52cb3cfc37e81e7385;hpb=0e5e973df58d4ff9655f0b70760673533163f3c1;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) {