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.13.0-rc1~196 X-Git-Url: http://git.liburcu.org/?p=lttng-modules.git;a=commitdiff_plain;h=f740341af86ed65e3cec0f71b4a6bb8a788563e3 fix: vmalloc on v5.8 without KALLSYMS Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: Ic945dad92e78a5bc2895a969a10c527e1349decf --- diff --git a/include/wrapper/vmalloc.h b/include/wrapper/vmalloc.h index 596fb9ed..f742f48f 100644 --- a/include/wrapper/vmalloc.h +++ b/include/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) \