X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=wrapper%2Ftracepoint.h;h=db762879e596046cc6306d00c5f2438d13084b51;hb=04fa45ade113b270e860aa0e31f6087b740e35ae;hp=0c5a296f2d3c35e493580c00336097e6e15c983b;hpb=80265be27c385f2b5852fa2f57f0607360622e1d;p=lttng-modules.git diff --git a/wrapper/tracepoint.h b/wrapper/tracepoint.h index 0c5a296f..db762879 100644 --- a/wrapper/tracepoint.h +++ b/wrapper/tracepoint.h @@ -52,7 +52,7 @@ void lttng_tracepoint_exit(void) #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)) */ -#ifdef CONFIG_MODULE_SIG +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0) && defined(CONFIG_MODULE_SIG)) #include #include @@ -74,9 +74,9 @@ int wrapper_tracepoint_module_notify(struct notifier_block *nb, } } -#endif /* CONFIG_MODULE_SIG */ +#endif /* #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0) && defined(CONFIG_MODULE_SIG)) */ -#if defined(CONFIG_MODULE_SIG) && defined(MODULE) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0) && defined(CONFIG_MODULE_SIG) && defined(MODULE)) static inline int wrapper_lttng_fixup_sig(struct module *mod) @@ -97,7 +97,7 @@ int wrapper_lttng_fixup_sig(struct module *mod) return ret; } -#else /* #if defined(CONFIG_MODULE_SIG) && defined(MODULE) */ +#else /* #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0) && defined(CONFIG_MODULE_SIG) && defined(MODULE)) */ static inline int wrapper_lttng_fixup_sig(struct module *mod) @@ -105,7 +105,7 @@ int wrapper_lttng_fixup_sig(struct module *mod) return 0; } -#endif /*#else #if defined(CONFIG_MODULE_SIG) && defined(MODULE) */ +#endif /* #else #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0) && defined(CONFIG_MODULE_SIG) && defined(MODULE)) */ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,19,0)) static inline struct tracepoint *lttng_tracepoint_ptr_deref(tracepoint_ptr_t *p)