From: Mathieu Desnoyers Date: Mon, 18 Dec 2023 18:17:07 +0000 (-0500) Subject: Fix: MODULE_IMPORT_NS is introduced in kernel 5.4 X-Git-Tag: v2.13.11~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5de523d864f876cdfb47312697f67e4fbad8bf69;p=lttng-modules.git Fix: MODULE_IMPORT_NS is introduced in kernel 5.4 Signed-off-by: Mathieu Desnoyers Change-Id: I4c5faafb3a3ff8178b45c0e411113b17643bbc78 --- diff --git a/src/wrapper/kallsyms.c b/src/wrapper/kallsyms.c index 9398c83f..e5b5e310 100644 --- a/src/wrapper/kallsyms.c +++ b/src/wrapper/kallsyms.c @@ -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