From patchwork Fri Nov 7 17:28:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jia Yu X-Patchwork-Id: 1213 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id C094E591A; Sat, 8 Nov 2014 02:27:08 +0100 (CET) Received: from smtp-outbound-2.vmware.com (smtp-outbound-2.vmware.com [208.91.2.13]) by dpdk.org (Postfix) with ESMTP id 3C2F6590B for ; Sat, 8 Nov 2014 02:27:06 +0100 (CET) Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id CEDC02865E for ; Fri, 7 Nov 2014 17:36:33 -0800 (PST) Received: from prmh-edge-ivybridge-13.eng.vmware.com (unknown [10.24.235.96]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id BF7C940D26; Fri, 7 Nov 2014 17:36:33 -0800 (PST) From: Jia Yu To: dev@dpdk.org Date: Fri, 7 Nov 2014 09:28:09 -0800 Message-Id: <1415381289-43291-1-git-send-email-jyu@vmware.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] lib: include rte_memory.h for __rte_cache_aligned 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Include rte_memory.h for lib files that use __rte_cache_aligned attribute. Signed-off-by: Jia Yu Acked-by: Thomas Monjalon --- lib/librte_distributor/rte_distributor.c | 1 + lib/librte_eal/common/include/rte_malloc_heap.h | 1 + lib/librte_ip_frag/rte_ip_frag.h | 1 + lib/librte_malloc/malloc_elem.h | 2 ++ lib/librte_mbuf/rte_mbuf.h | 1 + lib/librte_port/rte_port_frag.c | 1 + lib/librte_table/rte_table_acl.c | 1 + lib/librte_table/rte_table_array.c | 1 + lib/librte_table/rte_table_hash_ext.c | 1 + lib/librte_table/rte_table_hash_key16.c | 1 + lib/librte_table/rte_table_hash_key32.c | 1 + lib/librte_table/rte_table_hash_key8.c | 1 + lib/librte_table/rte_table_hash_lru.c | 1 + lib/librte_table/rte_table_lpm.c | 1 + lib/librte_table/rte_table_lpm_ipv6.c | 1 + 15 files changed, 16 insertions(+) diff --git a/lib/librte_distributor/rte_distributor.c b/lib/librte_distributor/rte_distributor.c index 656ee5c..c3f7981 100644 --- a/lib/librte_distributor/rte_distributor.c +++ b/lib/librte_distributor/rte_distributor.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include diff --git a/lib/librte_eal/common/include/rte_malloc_heap.h b/lib/librte_eal/common/include/rte_malloc_heap.h index f727b7a..716216f 100644 --- a/lib/librte_eal/common/include/rte_malloc_heap.h +++ b/lib/librte_eal/common/include/rte_malloc_heap.h @@ -37,6 +37,7 @@ #include #include #include +#include /* Number of free lists per heap, grouped by size. */ #define RTE_HEAP_NUM_FREELISTS 5 diff --git a/lib/librte_ip_frag/rte_ip_frag.h b/lib/librte_ip_frag/rte_ip_frag.h index 230a903..3989a5a 100644 --- a/lib/librte_ip_frag/rte_ip_frag.h +++ b/lib/librte_ip_frag/rte_ip_frag.h @@ -46,6 +46,7 @@ #include #include +#include #include #include diff --git a/lib/librte_malloc/malloc_elem.h b/lib/librte_malloc/malloc_elem.h index 1d666a5..6e8c3e8 100644 --- a/lib/librte_malloc/malloc_elem.h +++ b/lib/librte_malloc/malloc_elem.h @@ -34,6 +34,8 @@ #ifndef MALLOC_ELEM_H_ #define MALLOC_ELEM_H_ +#include + /* dummy definition of struct so we can use pointers to it in malloc_elem struct */ struct malloc_heap; diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index e8f9bfc..5998db0 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -54,6 +54,7 @@ #include #include +#include #include #include #include diff --git a/lib/librte_port/rte_port_frag.c b/lib/librte_port/rte_port_frag.c index 9f1bd3c..048ae2e 100644 --- a/lib/librte_port/rte_port_frag.c +++ b/lib/librte_port/rte_port_frag.c @@ -34,6 +34,7 @@ #include #include +#include #include "rte_port_frag.h" diff --git a/lib/librte_table/rte_table_acl.c b/lib/librte_table/rte_table_acl.c index c6d389e..1d88201 100644 --- a/lib/librte_table/rte_table_acl.c +++ b/lib/librte_table/rte_table_acl.c @@ -36,6 +36,7 @@ #include #include +#include #include #include diff --git a/lib/librte_table/rte_table_array.c b/lib/librte_table/rte_table_array.c index f0f5e1e..bb1ed38 100644 --- a/lib/librte_table/rte_table_array.c +++ b/lib/librte_table/rte_table_array.c @@ -36,6 +36,7 @@ #include #include +#include #include #include diff --git a/lib/librte_table/rte_table_hash_ext.c b/lib/librte_table/rte_table_hash_ext.c index 6e26d98..5096be5 100644 --- a/lib/librte_table/rte_table_hash_ext.c +++ b/lib/librte_table/rte_table_hash_ext.c @@ -36,6 +36,7 @@ #include #include +#include #include #include diff --git a/lib/librte_table/rte_table_hash_key16.c b/lib/librte_table/rte_table_hash_key16.c index f5ec87d..6976317 100644 --- a/lib/librte_table/rte_table_hash_key16.c +++ b/lib/librte_table/rte_table_hash_key16.c @@ -35,6 +35,7 @@ #include #include +#include #include #include diff --git a/lib/librte_table/rte_table_hash_key32.c b/lib/librte_table/rte_table_hash_key32.c index e8f4812..5ac91c0 100644 --- a/lib/librte_table/rte_table_hash_key32.c +++ b/lib/librte_table/rte_table_hash_key32.c @@ -35,6 +35,7 @@ #include #include +#include #include #include diff --git a/lib/librte_table/rte_table_hash_key8.c b/lib/librte_table/rte_table_hash_key8.c index d60c96e..9216eaf 100644 --- a/lib/librte_table/rte_table_hash_key8.c +++ b/lib/librte_table/rte_table_hash_key8.c @@ -35,6 +35,7 @@ #include #include +#include #include #include diff --git a/lib/librte_table/rte_table_hash_lru.c b/lib/librte_table/rte_table_hash_lru.c index d1a4984..9826957 100644 --- a/lib/librte_table/rte_table_hash_lru.c +++ b/lib/librte_table/rte_table_hash_lru.c @@ -36,6 +36,7 @@ #include #include +#include #include #include diff --git a/lib/librte_table/rte_table_lpm.c b/lib/librte_table/rte_table_lpm.c index a175ff3..5e3e0f2 100644 --- a/lib/librte_table/rte_table_lpm.c +++ b/lib/librte_table/rte_table_lpm.c @@ -36,6 +36,7 @@ #include #include +#include #include #include #include diff --git a/lib/librte_table/rte_table_lpm_ipv6.c b/lib/librte_table/rte_table_lpm_ipv6.c index e3d59d0..62fdb33 100644 --- a/lib/librte_table/rte_table_lpm_ipv6.c +++ b/lib/librte_table/rte_table_lpm_ipv6.c @@ -36,6 +36,7 @@ #include #include +#include #include #include #include