From 56086e9729ac99b76eea56940e0d09c8b431a834 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Thu, 6 Apr 2017 16:13:37 +0200 Subject: [PATCH] test/eventdev: fix build with crypto disabled There is a compilation error in the following case: make config T=x86_64-native-linuxapp-gcc sed -i 's,CONFIG_RTE_LIBRTE_CRYPTODEV=y,CONFIG_RTE_LIBRTE_CRYPTODEV=n,' \ build/.config sed -i 's,CONFIG_RTE_APP_CRYPTO_PERF=y,CONFIG_RTE_APP_CRYPTO_PERF=n,' \ build/.config make -j4 make -j4 test-build test_eventdev.c:39:27: fatal error: rte_cryptodev.h: No such file or directory #include ^ Removing the include induces a new error, (missing declaration of rte_eal_vdev_init()), which is fixed by including rte_dev.h. Fixes: f8f9d233ea0e ("test/eventdev: add unit tests") Signed-off-by: Olivier Matz Acked-by: Jerin Jacob --- test/test/test_eventdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test/test_eventdev.c b/test/test/test_eventdev.c index b568470a2e..5bd46346d5 100644 --- a/test/test/test_eventdev.c +++ b/test/test/test_eventdev.c @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include "test.h" -- 2.20.1