From: Thomas Monjalon Subject: [PATCH] mem: fix include in rte_malloc Date: Wed, 31 Jul 2013 11:18:45 +0200 Message-ID: <1375262325-5348-1-git-send-email-thomas.monjalon@6wind.com> References: <581E2E1085FAEF45B48CF8A139824CF804E64C5644@ACNMAIL1.ACN.ADVANTECH.CORP> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <581E2E1085FAEF45B48CF8A139824CF804E64C5644-vBGlDtGOlKBBva6MZ6yAsJWt57iikwTfrKKpfKFFTNI@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" The function rte_malloc_virt2phy has a dependency on rte_memory.h: phys_addr_t must be defined. The dependency handling for apps was wrong in the commit 8c86825cbf. Let's revert this part. Reported-by: Jia Sui Signed-off-by: Thomas Monjalon --- app/test/test_hash.c | 2 +- app/test/test_hash_perf.c | 2 +- app/test/test_memcpy.c | 1 - app/test/test_memcpy_perf.c | 1 - lib/librte_malloc/rte_malloc.h | 1 + 5 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/test/test_hash.c b/app/test/test_hash.c index 4de8cb1..5437e05 100644 --- a/app/test/test_hash.c +++ b/app/test/test_hash.c @@ -41,10 +41,10 @@ #include #include +#include #include #include #include -#include #include #include #include diff --git a/app/test/test_hash_perf.c b/app/test/test_hash_perf.c index 311c2bd..8a0feb3 100644 --- a/app/test/test_hash_perf.c +++ b/app/test/test_hash_perf.c @@ -42,10 +42,10 @@ #include #include +#include #include #include #include -#include #include #include #include diff --git a/app/test/test_memcpy.c b/app/test/test_memcpy.c index 729a2ff..d7777a8 100644 --- a/app/test/test_memcpy.c +++ b/app/test/test_memcpy.c @@ -41,7 +41,6 @@ #include #include #include -#include #include #include diff --git a/app/test/test_memcpy_perf.c b/app/test/test_memcpy_perf.c index 1e75f53..236b295 100644 --- a/app/test/test_memcpy_perf.c +++ b/app/test/test_memcpy_perf.c @@ -41,7 +41,6 @@ #include #include #include -#include #include #include diff --git a/lib/librte_malloc/rte_malloc.h b/lib/librte_malloc/rte_malloc.h index e68187a..fe85689 100644 --- a/lib/librte_malloc/rte_malloc.h +++ b/lib/librte_malloc/rte_malloc.h @@ -42,6 +42,7 @@ */ #include +#include #ifdef __cplusplus extern "C" { -- 1.7.10.4