Skip to content

Commit

Permalink
patch for kernel 6.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kcning committed Sep 15, 2023
1 parent 9cd143c commit ce11cd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crystalhd_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,10 @@ BC_STATUS crystalhd_map_dio(struct crystalhd_adp *adp, void *ubuff,
down_read(&current->mm->mmap_sem);
#endif

#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,9,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,5,0)
res = get_user_pages(uaddr, nr_pages, rw == READ ? FOLL_WRITE : 0,
dio->pages);
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,9,0)
res = get_user_pages(uaddr, nr_pages, rw == READ ? FOLL_WRITE : 0,
dio->pages, NULL);
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)
Expand Down

0 comments on commit ce11cd2

Please sign in to comment.