[dpdk-stable] [PATCH 1/1] kni: fix build with kernel 5.3

Christian Ehrhardt christian.ehrhardt at canonical.com
Thu Oct 24 09:31:30 CEST 2019


The include of kni_fifo should be local as kni provides it.
With newer kernels build systems this will run into an issue on
external module compilation.

/var/lib/dkms/dpdk-rte-kni/17.11.6/build/kni_net.c:40:10:
fatal error: kni_fifo.h: No such file or directory
 #include <kni_fifo.h>
          ^~~~~~~~~~~~

Like the includes to kni_dev.h this should be local as well.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt at canonical.com>
---
 lib/librte_eal/linuxapp/kni/kni_net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_eal/linuxapp/kni/kni_net.c b/lib/librte_eal/linuxapp/kni/kni_net.c
index db9f48989..1802f9d0b 100644
--- a/lib/librte_eal/linuxapp/kni/kni_net.c
+++ b/lib/librte_eal/linuxapp/kni/kni_net.c
@@ -37,7 +37,7 @@
 #include <linux/delay.h>
 
 #include <exec-env/rte_kni_common.h>
-#include <kni_fifo.h>
+#include "kni_fifo.h"
 
 #include "compat.h"
 #include "kni_dev.h"
-- 
2.23.0



More information about the stable mailing list