Fix: MODULE_IMPORT_NS is introduced in kernel 5.4
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 18 Dec 2023 18:17:07 +0000 (13:17 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 18 Dec 2023 18:17:07 +0000 (13:17 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I4c5faafb3a3ff8178b45c0e411113b17643bbc78

src/wrapper/kallsyms.c

index 9398c83f6d143e5a6b407bf3a2123e87d7ee3011..e5b5e3101f42313b60fc2fd83bf507d6aaf44724 100644 (file)
@@ -114,6 +114,6 @@ EXPORT_SYMBOL_GPL(wrapper_kallsyms_lookup_name);
 
 #endif
 
-#ifdef CONFIG_ANDROID
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,4,0) && defined(CONFIG_ANDROID))
 MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
 #endif
This page took 0.027664 seconds and 4 git commands to generate.