From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id E82CA1094 for ; Mon, 16 Jan 2017 16:41:07 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP; 16 Jan 2017 07:41:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,239,1477983600"; d="scan'208";a="213946912" Received: from silpixa00398672.ir.intel.com ([10.237.223.128]) by fmsmga004.fm.intel.com with ESMTP; 16 Jan 2017 07:41:06 -0800 From: Harry van Haaren To: jerin.jacob@caviumnetworks.com Cc: dev@dpdk.org, Bruce Richardson , Harry van Haaren Date: Mon, 16 Jan 2017 15:40:41 +0000 Message-Id: <1484581255-148720-2-git-send-email-harry.van.haaren@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484581255-148720-1-git-send-email-harry.van.haaren@intel.com> References: <1484581255-148720-1-git-send-email-harry.van.haaren@intel.com> Subject: [dpdk-dev] [PATCH 01/15] eventdev: remove unneeded dependencies X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2017 15:41:08 -0000 From: Bruce Richardson Since eventdev uses event structures rather than working directly on mbufs, there is no actual dependencies on the mbuf library. The inclusion of an mbuf pointer element inside the event itself does not require the inclusion of the mbuf header file. Similarly the pci header is not needed, but following their removal, rte_memory.h is needed for the definition of the __rte_cache_aligned macro. Signed-off-by: Bruce Richardson Signed-off-by: Harry van Haaren --- lib/librte_eventdev/Makefile | 1 - lib/librte_eventdev/rte_eventdev.h | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_eventdev/Makefile b/lib/librte_eventdev/Makefile index dac0663..396e5ec 100644 --- a/lib/librte_eventdev/Makefile +++ b/lib/librte_eventdev/Makefile @@ -52,6 +52,5 @@ EXPORT_MAP := rte_eventdev_version.map # library dependencies DEPDIRS-y += lib/librte_eal -DEPDIRS-y += lib/librte_mbuf include $(RTE_SDK)/mk/rte.lib.mk diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte_eventdev.h index e1bd05f..c2f9310 100644 --- a/lib/librte_eventdev/rte_eventdev.h +++ b/lib/librte_eventdev/rte_eventdev.h @@ -244,8 +244,9 @@ extern "C" { #endif #include -#include -#include +#include + +struct rte_mbuf; /* we just use mbuf pointers; no need to include rte_mbuf.h */ /* Event device capability bitmap flags */ #define RTE_EVENT_DEV_CAP_QUEUE_QOS (1ULL << 0) -- 2.7.4