numam-dpdk/lib/librte_eal/linuxapp
Ferruh Yigit 1735110509 kni: fix build with kernel < 3.1
compile error:
  CC [M]  .../lib/librte_eal/linuxapp/kni/kni_misc.o
cc1: warnings being treated as errors
.../lib/librte_eal/linuxapp/kni/kni_misc.c: In function ‘kni_exit_net’:
.../lib/librte_eal/linuxapp/kni/kni_misc.c:113:18:
error: unused variable ‘knet’

For kernel versions < v3.1 mutex_destroy() is a macro and does nothing,
this cause an unused variable warning for knet which used in the
mutex_destroy()

mutex_destroy() converted into static inline function with commit:
Linux: 4582c0a4866e ("mutex: Make mutex_destroy() an inline function")

To fix the warning unused attribute added to the knet variable.

Fixes: 93a298b34e ("kni: support core id parameter in single threaded mode")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
2016-10-14 22:21:28 +02:00
..
eal log: respect logger configured before EAL init 2016-10-13 22:13:18 +02:00
igb_uio igb_uio: fix possible mmap failure with Linux 4.5 2016-07-10 15:56:54 +02:00
kni kni: fix build with kernel < 3.1 2016-10-14 22:21:28 +02:00
xen_dom0 config: remove useless explicit includes of generated header 2016-02-10 22:43:38 +01:00
Makefile config: remove EAL flags for OS environment 2016-03-05 11:09:31 +01:00