Builds against linux v4.6-rc4

get_user*() migration helpers are removed in v4.6-rc4 and thus calls to
get_user_pages() are made differently.
This commit is contained in:
Johanna A 2016-05-05 19:47:32 +02:00
parent 29cf44233a
commit 79cb426825

View File

@ -76,7 +76,7 @@ static long u2mfn_ioctl(struct file *f, unsigned int cmd,
case U2MFN_GET_MFN_FOR_PAGE:
down_read(&current->mm->mmap_sem);
ret = get_user_pages
(current, current->mm, data, 1, 1, 0, &user_page, 0);
(data, 1, 1, 0, &user_page, 0);
up_read(&current->mm->mmap_sem);
if (ret != 1) {
printk("U2MFN_GET_MFN_FOR_PAGE: get_user_pages failed, ret=0x%lx\n", ret);