kni: fix build with kernel 4.11
authorFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Mar 2017 09:54:48 +0000 (09:54 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 30 Mar 2017 14:45:36 +0000 (16:45 +0200)
commitd4d2380cbb02980bf0334601d9ce6ec5400413f9
tree8a076673026d878a7a3411724938d69291954b8a
parent93e32ea3491f277af1caf675c2b0be3708bc00c3
kni: fix build with kernel 4.11

compile error:
.../build/build/lib/librte_eal/linuxapp/kni/kni_net.c:124:6:
error: implicit declaration of function ‘signal_pending’
[-Werror=implicit-function-declaration]
  if (signal_pending(current) || ret_val <= 0) {
      ^~~~~~~~~~~~~~

Linux 4.11 moves signal function declarations to its own header file:
Linux: 174cd4b1e5fb ("sched/headers: Prepare to move signal wakeup &
sigpending methods from <linux/sched.h> into <linux/sched/signal.h>")

Use new header file "linux/sched/signal.h" to fix the build error.

Cc: stable@dpdk.org
Reported-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Tested-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Tested-by: Pankaj Gupta <pagupta@redhat.com>
lib/librte_eal/linuxapp/kni/compat.h
lib/librte_eal/linuxapp/kni/kni_dev.h