From patchwork Fri Nov 10 17:00:13 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: 118598 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp8172113qgn; Fri, 10 Nov 2017 09:05:58 -0800 (PST) X-Google-Smtp-Source: AGs4zMbDaijCb41UUgsloK1z3Gb89738UoJ+DWcOUWwqr0u05FznIz3DGV+zosCz1FW3K3FqCWOX X-Received: by 10.237.37.16 with SMTP id v16mr1699199qtc.53.1510333557936; Fri, 10 Nov 2017 09:05:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510333557; cv=none; d=google.com; s=arc-20160816; b=QL6L9DM3lBuL0hPmGidFmfPiQ4G2fzTwbTr13nCDXTKRbtqWoHzS5Nl5mA9lT6FtM5 Dc7NjIsXjQYUI+ND8Pxb7jRFVodgk931tajcEu4d1rZgDAlTrg5sL5ftGkcxDew/50i8 u8ixNxB+ZQMCwwT3dZKEyoECh6w/bgmjJu2GjmuvNHclar8pUqZRJZudFfyOQcaGBBki titHU+1VF+KSCdujw3OLFRbPm2GsbTB7yRURORg0OlydiMMOQgrXsyrXubSswoN1aan+ KNzNVp9r5QHDhx4bF42oSzMuP1d3Ro62dz+HQM9D474iy8nuS2tICXRUK8Ej2rUKgLGB +TDg== 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=rIdMbQVKeo0FZjZfJy/sH3jX6my1DaejBR3ivGIFFjE=; b=cM7rWEGkT2nEXy0gzT+Id0xB7mYCQ+XC3XkjR376zWrLwavJPV8cbyN9yKXEeOrATl rt3hltn7NhnJ/Uq9j7gYtMQAnUThO6eSX9bxdu2PjYGDD67PCswBfV0zaot6V+hbXxXV WB2Np0NQ5bW35buFteVh8kh6aLunhtCBjIJSsV2POJvLF4Y4cXYI88HplKFcTrNqFl+I KCAN04MjJ+jpBEJF1jKklLoMgpzeHuPc1T1WzH1OL5EHkKfQQsZ7JuOIWYxNTa3craAF 8kiEQ1G0fI5onWaaL/DAMvjZHLQBkoM8E+9B66zt0fKUNbat1LsZVPtjpvhMAG+ejbsL 0xWQ== 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 v18si120675qtf.36.2017.11.10.09.05.57; Fri, 10 Nov 2017 09:05:57 -0800 (PST) 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 9015E6094C; Fri, 10 Nov 2017 17:05:57 +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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,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 79E0060983; Fri, 10 Nov 2017 17:00:59 +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 8C67260676; Fri, 10 Nov 2017 17:00:33 +0000 (UTC) Received: from forward15o.cmail.yandex.net (forward15o.cmail.yandex.net [37.9.109.212]) by lists.linaro.org (Postfix) with ESMTPS id 186E260386 for ; Fri, 10 Nov 2017 17:00:22 +0000 (UTC) Received: from mxback4g.mail.yandex.net (mxback4g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:165]) by forward15o.cmail.yandex.net (Yandex) with ESMTP id 86B1C25FB6 for ; Fri, 10 Nov 2017 20:00:20 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback4g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id wpIupWAOkL-0KQmBgai; Fri, 10 Nov 2017 20:00:20 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id cdbkjzjQmB-0JZuhS1t; Fri, 10 Nov 2017 20:00:19 +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: Fri, 10 Nov 2017 20:00:13 +0300 Message-Id: <1510333217-26418-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510333217-26418-1-git-send-email-odpbot@yandex.ru> References: <1510333217-26418-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 261 Subject: [lng-odp] [PATCH 2.0 v2 2/6] linux-gen: modular-framework: move buffer subsystem header to a public folder 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 Move buffer subsystem header to a public folder. 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: 65419c16086369f86dea068e54ce492526fa4f41 ** Merge commit sha: 3034b865079536d2064a7ceb890b5bf6876949a6 **/ include/Makefile.am | 4 ++++ include/odp_mf.h | 1 + .../subsystem/spec/buffer_subsystem.h | 1 - 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/subsystem/spec/buffer_subsystem.h (99%) diff --git a/include/Makefile.am b/include/Makefile.am index 1aeec1c72..ffff3f4df 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -74,6 +74,10 @@ frameworksmodularspecinclude_HEADERS = \ frameworks/modular/spec/module.h \ frameworks/modular/spec/list.h +subsystemspecincludedir= $(includedir)/subsystem/spec +subsystemspecinclude_HEADERS = \ + subsystem/spec/buffer_subsystem.h + odpapiabidefaultincludedir= $(includedir)/odp/arch/default/api/abi odpapiabidefaultinclude_HEADERS = \ odp/arch/default/api/abi/buffer.h \ diff --git a/include/odp_mf.h b/include/odp_mf.h index f29ae6cee..a4e6474fd 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/linux-generic/include/odp_buffer_subsystem.h b/include/subsystem/spec/buffer_subsystem.h similarity index 99% rename from platform/linux-generic/include/odp_buffer_subsystem.h rename to include/subsystem/spec/buffer_subsystem.h index 35b2a06e1..3817a04a1 100644 --- a/platform/linux-generic/include/odp_buffer_subsystem.h +++ b/include/subsystem/spec/buffer_subsystem.h @@ -61,4 +61,3 @@ typedef ODP_MODULE_CLASS(buffer) { #include #endif - diff --git a/platform/linux-dpdk/Makefile.am b/platform/linux-dpdk/Makefile.am index aa7990873..948518f90 100644 --- a/platform/linux-dpdk/Makefile.am +++ b/platform/linux-dpdk/Makefile.am @@ -175,7 +175,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..22e1123b0 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 afbb0edba..60e1fccb4 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -159,7 +159,6 @@ noinst_HEADERS = \ include/odp_bitmap_internal.h \ include/odp_bitset.h \ include/odp_buffer_internal.h \ - include/odp_buffer_subsystem.h \ include/odp_classification_datamodel.h \ include/odp_classification_inlines.h \ include/odp_classification_internal.h \ diff --git a/platform/linux-generic/buffer/generic.c b/platform/linux-generic/buffer/generic.c index 3281119be..cf99407cc 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..883781756 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",