get_user_pages function has interface change in 4.9 kernel,
update the gpu driver to fix the build problem.
Date: Feb 16, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
/* Get the user pages. */
down_read(¤t->mm->mmap_sem);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
result = get_user_pages(memory & PAGE_MASK,
pageCount,
FOLL_WRITE,
pages,
gcvNULL
);
+#else
+ result = get_user_pages(current,
+ current->mm,
+ memory & PAGE_MASK,
+ pageCount,
+ FOLL_WRITE,
+ pages,
+ gcvNULL
+ );
+#endif
up_read(¤t->mm->mmap_sem);