From: Michael Jeanson Date: Thu, 2 Jul 2020 15:21:42 +0000 (-0400) Subject: fix: mm: remove vmalloc_sync_(un)mappings() (v5.8) X-Git-Tag: v2.13.0-rc1~201 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0dcc94fab9139ed71921e521f7fc6696808e22c1;p=lttng-modules.git fix: mm: remove vmalloc_sync_(un)mappings() (v5.8) See upstream commit: commit 73f693c3a705756032c2863bfb37570276902d7d Author: Joerg Roedel Date: Mon Jun 1 21:52:36 2020 -0700 mm: remove vmalloc_sync_(un)mappings() These functions are not needed anymore because the vmalloc and ioremap mappings are now synchronized when they are created or torn down. Remove all callers and function definitions. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: Ifdefa35b25b4906cde407360e608b77e47cc3808 --- diff --git a/include/wrapper/vmalloc.h b/include/wrapper/vmalloc.h index 83b09d96..ff279bc1 100644 --- a/include/wrapper/vmalloc.h +++ b/include/wrapper/vmalloc.h @@ -22,7 +22,17 @@ #include #include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) \ +#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) +{} + +#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) \