Comment 41 for bug 1818049

enyone (enyone) wrote :

The reason for this is distro maintainer patches, not the changes in mainline kernel...

http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux_4.4.0-143.169.diff.gz

--- linux-4.4.0.orig/include/linux/mm.h
+++ linux-4.4.0/include/linux/mm.h
@@ -1193,19 +1221,17 @@
               struct vm_area_struct **vmas, int *nonblocking);
 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,
+            unsigned int gup_flags, struct page **pages,
             struct vm_area_struct **vmas);
 long get_user_pages_locked(struct task_struct *tsk, struct mm_struct *mm,
             unsigned long start, unsigned long nr_pages,
-            int write, int force, struct page **pages,
-            int *locked);
+            unsigned int gup_flags, struct page **pages, int *locked);
 long __get_user_pages_unlocked(struct task_struct *tsk, struct mm_struct *mm,
                    unsigned long start, unsigned long nr_pages,
-                   int write, int force, struct page **pages,
-                   unsigned int gup_flags);
+                   struct page **pages, unsigned int gup_flags);
 long get_user_pages_unlocked(struct task_struct *tsk, struct mm_struct *mm,
             unsigned long start, unsigned long nr_pages,
-            int write, int force, struct page **pages);
+            struct page **pages, unsigned int gup_flags);
 int get_user_pages_fast(unsigned long start, int nr_pages, int write,
             struct page **pages);