From patchwork Thu Oct 26 12:00:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 117199 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp677795qgn; Thu, 26 Oct 2017 05:04:36 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RsmKBgUhUHd8ZN8vUkuoK3YzaeIH1xh/8/hxIdwF/t/4eHlcmC+HbuVaPSlas8K3U/sArX X-Received: by 10.200.24.50 with SMTP id q47mr35223219qtj.290.1509019476043; Thu, 26 Oct 2017 05:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509019476; cv=none; d=google.com; s=arc-20160816; b=PqYEXyKSbuBRhRgF7tFvLPy/ZX5GN3Wt8zm8GFJT954dq6dUj4QTOpej1gAsOk0JrS bWoWC8ms2LcjbpoXoLAW0akYBHsQv/ezyZXfh8nm/4BHsCM1J5ciy02hSdqw5VDtztrQ qHbJnsGZpN0/RTSk8F9N9bc59zzapv2Yv1Gv8eEhj8bG3itl9nXHbuEGjTNHgCViIAZ4 05AxrBHSL+r2OWqJtZKjsnEzdrXnsGk1+FTXAGv6dIIw7MMJy/yvy7S14n2dfq50Jpdx tEJvL08eNZ6vaKulP+SEFE/WTPt5pAJIDpnJrNeM10g34GfLI2QEDljf3XuV6gnvD9Yg It9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=o7s3RSFxMplfnr8IEzzT+rrtuJdO9m23rtb10i1Zigs=; b=AXyhpNi+1iv3SnmuIglXt1icVTEImJXmm3IypvXwohY1lZll+jF0kykB5rRMw4n1wn jetu+ZRRoCOG5mTzUcwPryAWabKl7GHXEQAebV2bOVAzE++AwS3kubSAAFz3WjuFZx0X QfjBHgE9yjAprZAWucgAsim1yJeat8/5ZaTWCFSm4bofNWUj0GOehMmv7T85Ki1HNROK CaRbCV4FNjQ/BBMu7tq93Y0qPwD9Lzan1eYDWFSzxQMK9tJKrmMWQq6TEJlNkOdx+LAT 8vLC0VY3fwljC05swfYtWLRXjEJn5aj86INfJW3hQ+u14S/uVlJhCdKqP9xrU1RhjwzS nPzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id c32si2435971qtc.135.2017.10.26.05.04.35; Thu, 26 Oct 2017 05:04:36 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 8021A6094A; Thu, 26 Oct 2017 12:04:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id A100260988; Thu, 26 Oct 2017 12:02:12 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B89726073F; Thu, 26 Oct 2017 12:01:49 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id 3F5FF60812 for ; Thu, 26 Oct 2017 12:00:38 +0000 (UTC) Received: from mxback18j.mail.yandex.net (mxback18j.mail.yandex.net [IPv6:2a02:6b8:0:1619::94]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 56F95184BB6 for ; Thu, 26 Oct 2017 15:00:36 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback18j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 70tdQtTylV-0aXmC4aH; Thu, 26 Oct 2017 15:00:36 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 5wmkfxbo1F-0ZFWb22g; Thu, 26 Oct 2017 15:00:35 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 26 Oct 2017 15:00:01 +0300 Message-Id: <1509019205-3327-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1509019205-3327-1-git-send-email-odpbot@yandex.ru> References: <1509019205-3327-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 261 Subject: [lng-odp] [PATCH 2.0 v1 2/6] linux-gen: modular-framework: make public buffer subsystem header X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Bogdan Pricope Make public buffer subsystem header. Signed-off-by: Bogdan Pricope --- /** Email created from pull request 261 (bogdanPricope:2_0_mf_include_pr) ** https://github.com/Linaro/odp/pull/261 ** Patch: https://github.com/Linaro/odp/pull/261.patch ** Base sha: d37aa7f1c0480273fb0ccfded44a13e3e5a8e42f ** Merge commit sha: 4a263f664ff0e7916e1fe52f09afeed0db9a11dc **/ .../odp/subsystem/spec/buffer_subsystem.h | 1 - include/odp_mf.h | 1 + platform/Makefile.inc | 4 ++++ platform/linux-dpdk/Makefile.am | 1 - platform/linux-dpdk/buffer/dpdk.c | 2 +- platform/linux-generic/Makefile.am | 1 - platform/linux-generic/buffer/generic.c | 2 +- platform/linux-generic/buffer/subsystem.c | 2 +- 8 files changed, 8 insertions(+), 6 deletions(-) rename platform/linux-generic/include/odp_buffer_subsystem.h => include/odp/subsystem/spec/buffer_subsystem.h (99%) diff --git a/platform/linux-generic/include/odp_buffer_subsystem.h b/include/odp/subsystem/spec/buffer_subsystem.h similarity index 99% rename from platform/linux-generic/include/odp_buffer_subsystem.h rename to include/odp/subsystem/spec/buffer_subsystem.h index b8f6a6953..011ad448c 100644 --- a/platform/linux-generic/include/odp_buffer_subsystem.h +++ b/include/odp/subsystem/spec/buffer_subsystem.h @@ -61,4 +61,3 @@ typedef ODP_MODULE_CLASS(buffer) { #include #endif - diff --git a/include/odp_mf.h b/include/odp_mf.h index f8998f280..747c6dc4d 100644 --- a/include/odp_mf.h +++ b/include/odp_mf.h @@ -19,6 +19,7 @@ extern C { #endif #include +#include #ifdef __cplusplus } diff --git a/platform/Makefile.inc b/platform/Makefile.inc index e6270f6cd..0d38d377e 100644 --- a/platform/Makefile.inc +++ b/platform/Makefile.inc @@ -82,6 +82,10 @@ odpmfspecinclude_HEADERS = \ $(top_srcdir)/include/odp/mf/spec/module.h \ $(top_srcdir)/include/odp/mf/spec/list.h +odpsubsystemspecincludedir= $(includedir)/odp/subsytem/spec +odpsubsystemspecinclude_HEADERS = \ + $(top_srcdir)/include/odp/subsystem/spec/buffer_subsystem.h + odpapiabidefaultincludedir= $(includedir)/odp/arch/default/api/abi odpapiabidefaultinclude_HEADERS = \ $(top_srcdir)/include/odp/arch/default/api/abi/buffer.h \ diff --git a/platform/linux-dpdk/Makefile.am b/platform/linux-dpdk/Makefile.am index 14bd1b866..e1074cc23 100644 --- a/platform/linux-dpdk/Makefile.am +++ b/platform/linux-dpdk/Makefile.am @@ -172,7 +172,6 @@ odpdrvplatinclude_HEADERS = \ noinst_HEADERS = \ - ${top_srcdir}/platform/linux-generic/include/odp_buffer_subsystem.h \ ${top_srcdir}/platform/linux-generic/include/_fdserver_internal.h \ ${top_srcdir}/platform/linux-generic/include/_ishm_internal.h \ ${top_srcdir}/platform/linux-generic/include/_ishmphy_internal.h \ diff --git a/platform/linux-dpdk/buffer/dpdk.c b/platform/linux-dpdk/buffer/dpdk.c index 704468eea..65bb6b03c 100644 --- a/platform/linux-dpdk/buffer/dpdk.c +++ b/platform/linux-dpdk/buffer/dpdk.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #include diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index e5a776a25..4acd9236f 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -160,7 +160,6 @@ noinst_HEADERS = \ ${srcdir}/include/odp_bitmap_internal.h \ ${srcdir}/include/odp_bitset.h \ ${srcdir}/include/odp_buffer_internal.h \ - ${srcdir}/include/odp_buffer_subsystem.h \ ${srcdir}/include/odp_classification_datamodel.h \ ${srcdir}/include/odp_classification_inlines.h \ ${srcdir}/include/odp_classification_internal.h \ diff --git a/platform/linux-generic/buffer/generic.c b/platform/linux-generic/buffer/generic.c index 3281119be..70b1a73d7 100644 --- a/platform/linux-generic/buffer/generic.c +++ b/platform/linux-generic/buffer/generic.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include diff --git a/platform/linux-generic/buffer/subsystem.c b/platform/linux-generic/buffer/subsystem.c index 767113975..2e1bf59a3 100644 --- a/platform/linux-generic/buffer/subsystem.c +++ b/platform/linux-generic/buffer/subsystem.c @@ -6,7 +6,7 @@ * SPDX-License-Identifier: BSD-3-Clause */ #include -#include +#include #include ODP_SUBSYSTEM_DEFINE(buffer, "memory buffer public APIs",