ANDROID: GKI: Export two more mm symbols for GKI

__get_vm_area_caller(), map_kernel_range still be needed by a vendor
for their sub-system architecture that need to be improved.
Avoid using these symbols, becuase once the vendor improves
sub-system structure they will be unexported.

Bug: 181049185

Change-Id: I84d7c66351cc6d10798bc3a66f8325a90cec4324
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
This commit is contained in:
Jeongtae Park
2021-07-18 11:58:18 +09:00
committed by Suren Baghdasaryan
parent 0497b9601b
commit a3da917661

View File

@@ -327,6 +327,7 @@ int map_kernel_range(unsigned long start, unsigned long size, pgprot_t prot,
flush_cache_vmap(start, start + size);
return ret;
}
EXPORT_SYMBOL_GPL(map_kernel_range);
int is_vmalloc_or_module_addr(const void *x)
{
@@ -2100,6 +2101,7 @@ struct vm_struct *__get_vm_area_caller(unsigned long size, unsigned long flags,
return __get_vm_area_node(size, 1, flags, start, end, NUMA_NO_NODE,
GFP_KERNEL, caller);
}
EXPORT_SYMBOL_GPL(__get_vm_area_caller);
/**
* get_vm_area - reserve a contiguous kernel virtual area