From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 17A604C6E for ; Wed, 31 Jul 2013 11:18:24 +0200 (CEST) Received: by mail-wg0-f50.google.com with SMTP id m15so373947wgh.5 for ; Wed, 31 Jul 2013 02:18:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=6gwouDWWfjmyq58iybx/5Yw+Btb+A7Eo5bqA6Srw8TI=; b=lPqotmaDHhx7bfLYJOJ3HNu1r1hjoPouOl+jHqRt++fE1DP6/yRyRwKNC8l3OEJORT mHwy97hSXT4kKIDRaduniHTWiqt4qOs1Ka/ZgzDCUTMLaK+dlvz4Bx/Zg3lFA9KhyWll +zDYcLRdW27yqhYIB+QE9+x5aA+V82bpla5ZadQjjxCc1DRMAC+JysLqFsIXOeKVFyZf yhbHCgMoC3BQqTbNsa0z3ASIO3yj7qjbmi0A6CKRVq2Lq+OUjLpb1EoNlMzae3ikXVFd f8NNifUuTvPjwHNww0eeKWGhBEP6E4nWr4SuvmbyByipjWTrhfql0wN2Kn6dmeI5cgYl n7/w== X-Received: by 10.180.185.148 with SMTP id fc20mr3705360wic.0.1375262329109; Wed, 31 Jul 2013 02:18:49 -0700 (PDT) Received: from 6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id b13sm13874506wic.9.2013.07.31.02.18.46 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 02:18:48 -0700 (PDT) Received: by 6wind.com (sSMTP sendmail emulation); Wed, 31 Jul 2013 11:18:45 +0200 From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 31 Jul 2013 11:18:45 +0200 Message-Id: <1375262325-5348-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <581E2E1085FAEF45B48CF8A139824CF804E64C5644@ACNMAIL1.ACN.ADVANTECH.CORP> References: <581E2E1085FAEF45B48CF8A139824CF804E64C5644@ACNMAIL1.ACN.ADVANTECH.CORP> X-Gm-Message-State: ALoCoQke+j81q+7KCl9dzyQJNlISnwJb0wJucafZsgaJgkaHYGVKCZuOEPYgDcuL3r/s/GB8+NWf Subject: [dpdk-dev] [PATCH] mem: fix include in rte_malloc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jul 2013 09:18:25 -0000 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