kni: fix build with Linux 5.9
authorFerruh Yigit <ferruh.yigit@intel.com>
Mon, 17 Aug 2020 10:32:47 +0000 (11:32 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 29 Sep 2020 10:38:04 +0000 (12:38 +0200)
commit87efaea6376c8ae1a69e471450744a973995726b
treed613850d30d9498cf8f7952162e05a533ed31b9e
parent2d962bb73652149cf3d839212180c69b7c52faf2
kni: fix build with Linux 5.9

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.

Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
kernel/linux/kni/compat.h
kernel/linux/kni/kni_dev.h