From 0291c4ad9365e13d1ab4efeb6126d84f983bfb1d Mon Sep 17 00:00:00 2001 From: Will McVicker Date: Thu, 20 Oct 2022 15:28:34 -0700 Subject: [PATCH] ANDROID: mm: export vm_unmapped_area() The mali GPU device needs to have a custom get_unmapped_area() file operation [1] in order to align GPU VA memory to a 2MB boundary for 64-bit processes. Since the GPU driver is a module, we need to export vm_unmapped_area() to call it from the device's get_unmapped_area() file op. [1] https://android.googlesource.com/kernel/google-modules/gpu/+/refs/heads/android-gs-raviole-mainline/mali_kbase/thirdparty/mali_kbase_mmap.c#237 Bug: 254386546 Signed-off-by: Will McVicker Signed-off-by: Greg Kroah-Hartman Change-Id: I08a1247e215a46fa0ca1a0d61f63be4fa8375ee4 --- mm/mmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/mmap.c b/mm/mmap.c index 6e447544f07d..439af6d192a0 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1629,6 +1629,7 @@ unsigned long vm_unmapped_area(struct vm_unmapped_area_info *info) trace_vm_unmapped_area(addr, info); return addr; } +EXPORT_SYMBOL_GPL(vm_unmapped_area); /* Get an address range which is currently unmapped. * For shmat() with addr=0.