1
0
mirror of https://github.com/KastnerRG/riffa.git synced 2024-12-24 22:58:54 +08:00

riffa_driver.c: #elsif typo fixed

#elsif directive is'nt defined. The correct one is #elif.
This commit is contained in:
erfanva 2023-06-21 19:22:16 +03:30 committed by Adrien Prost-Boucle
parent c5748222e0
commit 7f5cd2db2d

View File

@ -461,7 +461,7 @@ static inline struct sg_mapping * fill_sg_buf(struct fpga_state * sc, int chnl,
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,6,0) #if LINUX_VERSION_CODE < KERNEL_VERSION(4,6,0)
num_pages = get_user_pages(current, current->mm, udata, num_pages_reqd, 1, 0, pages, NULL); num_pages = get_user_pages(current, current->mm, udata, num_pages_reqd, 1, 0, pages, NULL);
#elsif LINUX_VERSION_CODE < KERNEL_VERSION(4,9,0) #elif LINUX_VERSION_CODE < KERNEL_VERSION(4,9,0)
num_pages = get_user_pages(udata, num_pages_reqd, 1, 0, pages, NULL); num_pages = get_user_pages(udata, num_pages_reqd, 1, 0, pages, NULL);
#else #else
num_pages = get_user_pages(udata, num_pages_reqd, FOLL_WRITE, pages, NULL); num_pages = get_user_pages(udata, num_pages_reqd, FOLL_WRITE, pages, NULL);