Skip to content

Commit 45a82a6

Browse files
committed
staging: android: use mm_get_unmapped_area() in ashmem
Changes due to commit 529ce23 ("mm: switch mm->get_unmapped_area() to a flag") Fixes the following building error: ./kernel/drivers/staging/android/ashmem.c:375:22: error: no member named 'get_unmapped_area' in 'struct mm_struct' return current->mm->get_unmapped_area(file, addr, len, pgoff, flags); ~~~~~~~~~~~ ^ 1 error generated.
1 parent 5496501 commit 45a82a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/android/ashmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ ashmem_vmfile_get_unmapped_area(struct file *file, unsigned long addr,
372372
unsigned long len, unsigned long pgoff,
373373
unsigned long flags)
374374
{
375-
return current->mm->get_unmapped_area(file, addr, len, pgoff, flags);
375+
return mm_get_unmapped_area(current->mm, file, addr, len, pgoff, flags);
376376
}
377377

378378
static int ashmem_mmap(struct file *file, struct vm_area_struct *vma)

0 commit comments

Comments
 (0)