From ce11cd22b26cadf3d2c8daa14ec785456528280e Mon Sep 17 00:00:00 2001 From: Kai-Chun Ning Date: Fri, 15 Sep 2023 09:14:45 +0200 Subject: [PATCH] patch for kernel 6.5.0 --- crystalhd_misc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crystalhd_misc.c b/crystalhd_misc.c index e976680..5710b54 100644 --- a/crystalhd_misc.c +++ b/crystalhd_misc.c @@ -666,7 +666,10 @@ BC_STATUS crystalhd_map_dio(struct crystalhd_adp *adp, void *ubuff, down_read(¤t->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)