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:
parent
c5748222e0
commit
7f5cd2db2d
@ -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)
|
||||
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);
|
||||
#else
|
||||
num_pages = get_user_pages(udata, num_pages_reqd, FOLL_WRITE, pages, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user