Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Convert straggling drivers to new six-argument get_user_pages()

Commit d4edcf0d5695 ("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 commit cde70140fed8: "mm/gup: Overload get_user_pages()
functions"), but cause unnecessary build noise.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+2 -3
+1 -2
drivers/platform/goldfish/goldfish_pipe.c
··· 309 309 * much memory to the process. 310 310 */ 311 311 down_read(&current->mm->mmap_sem); 312 - ret = get_user_pages(current, current->mm, address, 1, 313 - !is_write, 0, &page, NULL); 312 + ret = get_user_pages(address, 1, !is_write, 0, &page, NULL); 314 313 up_read(&current->mm->mmap_sem); 315 314 if (ret < 0) 316 315 break;
+1 -1
drivers/rapidio/devices/rio_mport_cdev.c
··· 886 886 } 887 887 888 888 down_read(&current->mm->mmap_sem); 889 - pinned = get_user_pages(current, current->mm, 889 + pinned = get_user_pages( 890 890 (unsigned long)xfer->loc_addr & PAGE_MASK, 891 891 nr_pages, dir == DMA_FROM_DEVICE, 0, 892 892 page_list, NULL);