X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-events.h;h=52402198b48c4b932de1008a35e15aeaed43d1e5;hb=9f920259167fcd032139b2ab605b82e5d0b970c6;hp=05309174ab67635adaf94d47dab93b50aa8b17fd;hpb=b0af7adf85c6d6b0d30ea8f83a830211748c2429;p=lttng-modules.git diff --git a/lttng-events.h b/lttng-events.h index 05309174..52402198 100644 --- a/lttng-events.h +++ b/lttng-events.h @@ -731,8 +731,7 @@ int lttng_add_cgroup_ns_to_ctx(struct lttng_ctx **ctx) } #endif -#if defined(CONFIG_IPC_NS) && \ - (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) +#if defined(CONFIG_IPC_NS) int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx); #else static inline @@ -742,8 +741,7 @@ int lttng_add_ipc_ns_to_ctx(struct lttng_ctx **ctx) } #endif -#if !defined(LTTNG_MNT_NS_MISSING_HEADER) && \ - (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) +#if !defined(LTTNG_MNT_NS_MISSING_HEADER) int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx); #else static inline @@ -753,8 +751,7 @@ int lttng_add_mnt_ns_to_ctx(struct lttng_ctx **ctx) } #endif -#if defined(CONFIG_NET_NS) && \ - (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) +#if defined(CONFIG_NET_NS) int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx); #else static inline @@ -764,8 +761,7 @@ int lttng_add_net_ns_to_ctx(struct lttng_ctx **ctx) } #endif -#if defined(CONFIG_PID_NS) && \ - (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) +#if defined(CONFIG_PID_NS) int lttng_add_pid_ns_to_ctx(struct lttng_ctx **ctx); #else static inline @@ -775,8 +771,7 @@ int lttng_add_pid_ns_to_ctx(struct lttng_ctx **ctx) } #endif -#if defined(CONFIG_USER_NS) && \ - (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) +#if defined(CONFIG_USER_NS) int lttng_add_user_ns_to_ctx(struct lttng_ctx **ctx); #else static inline @@ -786,8 +781,7 @@ int lttng_add_user_ns_to_ctx(struct lttng_ctx **ctx) } #endif -#if defined(CONFIG_UTS_NS) && \ - (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) +#if defined(CONFIG_UTS_NS) int lttng_add_uts_ns_to_ctx(struct lttng_ctx **ctx); #else static inline