igb_uio: fix build
authorJan Viktorin <viktorin@rehivetech.com>
Fri, 24 Jul 2015 17:11:44 +0000 (19:11 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Jul 2015 13:02:48 +0000 (15:02 +0200)
The missing header prevents to build with linux v3.18.

The problem is with kzalloc and kfree which are undefined in the igb_uio
driver.

HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm
RTE_TARGET=arm-armv7-a-linuxapp-gcc
CROSS=arm-none-linux-gnueabi-
lib/librte_eal/linuxapp/igb_uio/igb_uio.c:
error: implicit declaration of function 'kzalloc'
error: implicit declaration of function 'kfree'

Signed-off-by: Jan Viktorin <viktorin@rehivetech.com>
lib/librte_eal/linuxapp/igb_uio/igb_uio.c

index ba1364b..865a276 100644 (file)
@@ -31,6 +31,7 @@
 #include <linux/io.h>
 #include <linux/msi.h>
 #include <linux/version.h>
+#include <linux/slab.h>
 
 #ifdef CONFIG_XEN_DOM0
 #include <xen/xen.h>