From: Michael Jeanson Date: Tue, 7 Jul 2020 15:15:39 +0000 (-0400) Subject: fix: vmalloc on v5.8 without KALLSYMS X-Git-Tag: v2.11.5~11 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=02f0c95cdc69859fa9b77e2458cf05352dad4d92;p=lttng-modules.git fix: vmalloc on v5.8 without KALLSYMS Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: Ic945dad92e78a5bc2895a969a10c527e1349decf --- diff --git a/wrapper/vmalloc.h b/wrapper/vmalloc.h index 362054b1..21e9bda2 100644 --- a/wrapper/vmalloc.h +++ b/wrapper/vmalloc.h @@ -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) \