This change was not for all 4.4, but just a small subset that does not replicate on later version of the kernel.

This commit is contained in:
Godzil 2019-07-25 16:16:59 +01:00
parent 3e71c6e74f
commit ac6def392c

View File

@ -149,7 +149,8 @@
#define GET_USER_PAGES(t,m,s,n,w,f,p,v) get_user_pages_remote(t,m,s,n,(w?FOLL_WRITE:0)|(f?FOLL_FORCE:0),p,v, NULL)
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
#define GET_USER_PAGES(t,m,s,n,w,f,p,v) get_user_pages_remote(t,m,s,n,w,f,p,v)
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 168)
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 168) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0)
/* WTH? a small subset of 4.4 have changes that does not exist until 4.9 with a new function name */
#define GET_USER_PAGES(t,m,s,n,w,f,p,v) get_user_pages(t,m,s,n,(w?FOLL_WRITE:0)|(f?FOLL_FORCE:0),p,v)
#else
#define GET_USER_PAGES(t, m, s, n, w, f, p, v) get_user_pages(t,m,s,n,w,f,p,v)