Updated host/tools_support.c for new get_user_pages() function.
authorAaron Taylor <ataylor@subgeniuskitty.com>
Thu, 29 Apr 2021 00:05:17 +0000 (17:05 -0700)
committerAaron Taylor <ataylor@subgeniuskitty.com>
Thu, 29 Apr 2021 00:05:17 +0000 (17:05 -0700)
commit856bf072ed0fe839360e7eec28feaa2bddcf40a8
tree1594b30cb56912daf1c869a07d2c1e3e8deeaff2
parente3dad721fb74988b302308853db578491fd69071
Updated host/tools_support.c for new get_user_pages() function.

At some point the function prototype changed from this:

    long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
                unsigned long start, unsigned long nr_pages,
                int write, int force, struct page **pages,
                struct vm_area_struct **vmas);

into this:

    long get_user_pages(unsigned long start, unsigned long nr_pages,
                    unsigned int gup_flags, struct page **pages,
                    struct vm_area_struct **vmas);

With the individual 'write' and 'force' flags transforming into gup_flags per
this patch:

    https://patchwork.kernel.org/project/linux-arm-kernel/patch/20161013002020.3062-7-lstoakes@gmail.com/
host/tools_support.c