Message ID | 20160226132812.a81d46c0151cb47f9433909f@linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Friday 26 February 2016 13:28:12 Andrew Morton wrote: > On Fri, 26 Feb 2016 12:59:43 +0100 Arnd Bergmann <arnd@arndb.de> wrote: > > The API change is currently only in the mm/pkeys branch of the > > tip tree, while the goldfish_pipe driver started using the > > old API in the staging/next branch. > > > > Andrew could pick it up into linux-mm in the meantime, or I can > > resend it at some later point if nobody else does the change > > after 4.6-rc1. > > This is one for Ingo. > ... > > This removes the first two arguments, which are now the default. > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > Cc: Dave Hansen <dave.hansen@linux.intel.com> > Cc: Ingo Molnar <mingo@elte.hu> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org> As mentioned in my comment above, the patch can only get added after the staging/next tree has also been merged, which I think Ingo doesn't want to add to the tip tree. Arnd
diff -puN drivers/platform/goldfish/goldfish_pipe.c~staging-goldfish-use-6-arg-get_user_pages drivers/platform/goldfish/goldfish_pipe.c --- a/drivers/platform/goldfish/goldfish_pipe.c~staging-goldfish-use-6-arg-get_user_pages +++ a/drivers/platform/goldfish/goldfish_pipe.c @@ -309,8 +309,7 @@ static ssize_t goldfish_pipe_read_write( * much memory to the process. */ down_read(¤t->mm->mmap_sem); - ret = get_user_pages(current, current->mm, address, 1, - !is_write, 0, &page, NULL); + ret = get_user_pages(address, 1, !is_write, 0, &page, NULL); up_read(¤t->mm->mmap_sem); if (ret < 0) break;