Re: [dpdk-dev] [PATCH] kni: fix build with Linux 5.9

2020-09-09 Thread Ferruh Yigit
On 9/9/2020 12:59 PM, Min Hu (Connor) wrote: > Build error seen with Linux kernel 5.9. > > Build error: > kernel/linux/kni/kni_dev.h:104:30: > error: passing argument 1 of ‘get_user_pages_remote’ from > incompatible pointer type [-Werror=incompatible-pointer-types] > ret = get_us

[dpdk-dev] [PATCH] kni: fix build with Linux 5.9

2020-09-09 Thread Min Hu (Connor)
Build error seen with Linux kernel 5.9. Build error: kernel/linux/kni/kni_dev.h:104:30: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] ret = get_user_pages_remote(tsk, tsk->mm, iova, 1, get_user_page

[dpdk-dev] [PATCH] kni: fix build with Linux 5.9

2020-08-17 Thread Ferruh Yigit
Starting from Linux 5.9 'get_user_pages_remote()' API doesn't get 'struct task_struct' parameter: commit 64019a2e467a ("mm/gup: remove task_struct pointer for all gup code") The change reflected to the KNI with version check. Signed-off-by: Ferruh Yigit --- kernel/linux/kni/compat.h | 4