aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTushar Behera <tushar.behera@linaro.org>2012-11-15 14:13:51 +0530
committerTushar Behera <tushar.behera@linaro.org>2013-03-14 10:47:18 +0530
commit08f9c7185ac1f49091564601faf2fc97137fa35d (patch)
tree9c34e063b36b8ebdbb2504e621f8f41fc7adbf02
parentb1270a90a85ba0694021caf0f4c88a8dc88e351a (diff)
MALI: Fix build error by removing VM_RESERVED flag
Commit 314e51b9851b ("mm: kill vma flag VM_RESERVED and mm->reserved_vm counter") removes the usage of VM_RESERVED flag. Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r--drivers/gpu/arm/mali/linux/mali_osk_low_level_mem.c2
-rw-r--r--drivers/gpu/arm/ump/linux/ump_osk_low_level_mem.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/arm/mali/linux/mali_osk_low_level_mem.c b/drivers/gpu/arm/mali/linux/mali_osk_low_level_mem.c
index 210d8226074..524aa6e5eef 100644
--- a/drivers/gpu/arm/mali/linux/mali_osk_low_level_mem.c
+++ b/drivers/gpu/arm/mali/linux/mali_osk_low_level_mem.c
@@ -400,7 +400,7 @@ _mali_osk_errcode_t _mali_osk_mem_mapregion_init( mali_memory_allocation * descr
The memory is reserved, meaning that it's present and can never be paged out (see also previous entry)
*/
vma->vm_flags |= VM_IO;
- vma->vm_flags |= VM_RESERVED;
+ vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP;
vma->vm_flags |= VM_DONTCOPY;
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
diff --git a/drivers/gpu/arm/ump/linux/ump_osk_low_level_mem.c b/drivers/gpu/arm/ump/linux/ump_osk_low_level_mem.c
index b37fd28721a..fd0d7e523e0 100644
--- a/drivers/gpu/arm/ump/linux/ump_osk_low_level_mem.c
+++ b/drivers/gpu/arm/ump/linux/ump_osk_low_level_mem.c
@@ -148,7 +148,7 @@ _mali_osk_errcode_t _ump_osk_mem_mapregion_init( ump_memory_allocation * descrip
vma->vm_private_data = vma_usage_tracker;
vma->vm_flags |= VM_IO;
- vma->vm_flags |= VM_RESERVED;
+ vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP;
if (0==descriptor->is_cached)
{