Namespace kernel version macros
[lttng-modules.git] / include / wrapper / kallsyms.h
index 7f4d8300c53eb591bd7e55b84529bd2ab634e288..6a3e27e986e0b72d0e2c843f2b9f854e9ed940cd 100644 (file)
@@ -14,7 +14,7 @@
 #define _LTTNG_WRAPPER_KALLSYMS_H
 
 #include <linux/kallsyms.h>
-#include <linux/version.h>
+#include <lttng/kernel-version.h>
 
 /*
  * PowerPC ABIv1 needs KALLSYMS_ALL to get the function descriptor,
 # endif
 #endif
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,7,0))
 
 unsigned long wrapper_kallsyms_lookup_name(const char *name);
 
-#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0)) */
+#else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,7,0)) */
 
 static inline
 unsigned long wrapper_kallsyms_lookup_name(const char *name)
@@ -38,7 +38,7 @@ unsigned long wrapper_kallsyms_lookup_name(const char *name)
        return kallsyms_lookup_name(name);
 }
 
-#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0)) */
+#endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,7,0)) */
 
 static inline
 unsigned long kallsyms_lookup_funcptr(const char *name)
This page took 0.023963 seconds and 4 git commands to generate.