From f76640a8498e85d60e25fbd9499cf69477fd8927 Mon Sep 17 00:00:00 2001 From: Jan Viktorin Date: Fri, 24 Jul 2015 19:11:44 +0200 Subject: [PATCH] igb_uio: fix build 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 --- lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c index ba1364b7c0..865a2764f5 100644 --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c @@ -31,6 +31,7 @@ #include #include #include +#include #ifdef CONFIG_XEN_DOM0 #include -- 2.20.1