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:
parent
29cf44233a
commit
79cb426825
@ -76,7 +76,7 @@ static long u2mfn_ioctl(struct file *f, unsigned int cmd,
|
||||
case U2MFN_GET_MFN_FOR_PAGE:
|
||||
down_read(¤t->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(¤t->mm->mmap_sem);
|
||||
if (ret != 1) {
|
||||
printk("U2MFN_GET_MFN_FOR_PAGE: get_user_pages failed, ret=0x%lx\n", ret);
|
||||
|
Loading…
Reference in New Issue
Block a user