--- a/linux/hostif.c 2016-12-22 14:27:00.425933040 +0100 +++ b/linux/hostif.c 2016-12-22 14:27:38.746706220 +0100 @@ -1162,7 +1162,9 @@ int retval; down_read(¤t->mm->mmap_sem); -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) + retval = get_user_pages((unsigned long)uvAddr, numPages, 0, ppages, NULL); +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) retval = get_user_pages((unsigned long)uvAddr, numPages, 0, 0, ppages, NULL); #else retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,