]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging/vchi: Convert to current get_user_pages() arguments.
authorEric Anholt <eric@anholt.net>
Mon, 3 Oct 2016 18:52:06 +0000 (11:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:24:16 +0000 (10:24 +0200)
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c

index c29040fdf9a7757b7c0d428616e244a6e4d5f697..18f268ee6d4bf9fc2d6f9bacbe964ce475aa0cec 100644 (file)
@@ -420,7 +420,7 @@ create_pagelist(char __user *buf, size_t count, unsigned short type,
                *need_release = 0; /* do not try and release vmalloc pages */
        } else {
                down_read(&task->mm->mmap_sem);
-               actual_pages = get_user_pages(task, task->mm,
+               actual_pages = get_user_pages(
                                          (unsigned long)buf & ~(PAGE_SIZE - 1),
                                          num_pages,
                                          (type == PAGELIST_READ) /*Write */ ,
index e11c0e07471bc7ebba04e48d3efc746236ec2f4e..56c2c48f68018e21ee07197dc27334f7eabb6d15 100644 (file)
@@ -1473,8 +1473,7 @@ dump_phys_mem(void *virt_addr, uint32_t num_bytes)
        }
 
        down_read(&current->mm->mmap_sem);
-       rc = get_user_pages(current,      /* task */
-               current->mm,              /* mm */
+       rc = get_user_pages(
                (unsigned long)virt_addr, /* start */
                num_pages,                /* len */
                0,                        /* write */