Builds against 4.9

The function signature for get_user_pages() has changed in linux 4.9.
pull/11/head
Johanna A 8 years ago committed by M. Vefa Bicakci
parent fbcad1cb17
commit 5d157dbeb3
No known key found for this signature in database
GPG Key ID: 1DF87CE3B3A5DFAF

@ -75,7 +75,10 @@ static long u2mfn_ioctl(struct file *f, unsigned int cmd,
switch (cmd) {
case U2MFN_GET_MFN_FOR_PAGE:
down_read(&current->mm->mmap_sem);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
ret = get_user_pages
(data, 1, (FOLL_WRITE | FOLL_FORCE), &user_page, 0);
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
ret = get_user_pages
(data, 1, 1, 0, &user_page, 0);
#else

Loading…
Cancel
Save