From 64bf0a6e8fac216907a6d6d9376840cbedec95b1 Mon Sep 17 00:00:00 2001 From: Richael Zhuang Date: Fri, 20 Dec 2019 14:49:21 +0800 Subject: [PATCH] test/env: fail to build mem_callbacks.c on non-x86 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When building spdk on arm64 with --enable-werror, there are error: "implicit declaration of function ‘rte_eal_init’ ". For X86, mem_callbacks.c's dependency header file rte_rwlock.h includes rte_spinlock.h(rte_spinlock.h->rte_lcore.h->rte_eal.h), but for arm64 and ppc rte_spinlock.h isn't included. So I include ret_eal.h explicitly here. Signed-off-by: Richael Zhuang Change-Id: If8859f5272aeb220dc448a312cb0d1c65e149742 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478570 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- test/env/mem_callbacks/mem_callbacks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/env/mem_callbacks/mem_callbacks.c b/test/env/mem_callbacks/mem_callbacks.c index 542bdd74c..accdedbcd 100644 --- a/test/env/mem_callbacks/mem_callbacks.c +++ b/test/env/mem_callbacks/mem_callbacks.c @@ -41,6 +41,7 @@ #include #include #include +#include #if RTE_VERSION < RTE_VERSION_NUM(18, 05, 0, 0)