mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Convert straggling drivers to new six-argument get_user_pages()
Commitd4edcf0d56("mm/gup: Switch all callers of get_user_pages() to not pass tsk/mm") switched get_user_pages() callers to the simpler model where they no longer pass in the thread and mm pointer. But since then we've merged changes to a few drivers that re-introduce use of the old interface. Let's fix them up. They continued to work fine (thanks to the truly disgusting macros introduced in commitcde70140fe: "mm/gup: Overload get_user_pages() functions"), but cause unnecessary build noise. Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
264800b5ec
commit
cb107161df
2 changed files with 2 additions and 3 deletions
|
|
@ -886,7 +886,7 @@ rio_dma_transfer(struct file *filp, uint32_t transfer_mode,
|
|||
}
|
||||
|
||||
down_read(¤t->mm->mmap_sem);
|
||||
pinned = get_user_pages(current, current->mm,
|
||||
pinned = get_user_pages(
|
||||
(unsigned long)xfer->loc_addr & PAGE_MASK,
|
||||
nr_pages, dir == DMA_FROM_DEVICE, 0,
|
||||
page_list, NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue