Skip to content

Commit

Permalink
Compilation fix for 6.5: removed last argument from get_user_pages_re…
Browse files Browse the repository at this point in the history
…mote()

Signed-off-by: Alex Margolin <[email protected]>
  • Loading branch information
alex--m committed Nov 13, 2023
1 parent 6d38ed2 commit 0c56201
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kernel/xpmem_pfn.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,12 @@ xpmem_pin_page(struct xpmem_thread_group *tg, struct task_struct *src_task,
foll_write = (vma->vm_flags & VM_WRITE) ? FOLL_WRITE : 0;

/* get_user_pages()/get_user_pages_remote() faults and pins the page */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 5, 0)
ret = get_user_pages_remote (src_mm, vaddr, 1, foll_write, &page, NULL);
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)
ret = get_user_pages_remote (src_mm, vaddr, 1, foll_write, &page, NULL,
NULL);
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
ret = get_user_pages_remote (src_task, src_mm, vaddr, 1, foll_write,
&page, NULL, NULL);
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)
Expand Down

0 comments on commit 0c56201

Please sign in to comment.