fix: vmalloc on v5.8 without KALLSYMS
[lttng-modules.git] / wrapper / vmalloc.h
index 362054b162b9e80eab799ca9be66298a697bb068..21e9bda2fbfd63fcdd05591b01f56173b716631e 100644 (file)
@@ -117,9 +117,19 @@ void __canary__vmalloc_sync_all(void)
 
 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)) */
 
-#else
+#else /* CONFIG_KALLSYMS */
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0))
+
+/*
+ * wrapper_vmalloc_sync_mappings was removed in v5.8, the vmalloc mappings
+ * are now synchronized when they are created or torn down.
+ */
+static inline
+void wrapper_vmalloc_sync_mappings(void)
+{}
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) \
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) \
   || LTTNG_KERNEL_RANGE(5,5,12, 5,6,0)            \
   || LTTNG_KERNEL_RANGE(5,4,28, 5,5,0)            \
   || LTTNG_KERNEL_RANGE(5,2,37, 5,3,0)            \
This page took 0.024046 seconds and 4 git commands to generate.