From patchwork Thu Dec 3 11:27:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 57635 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp3434708lbb; Thu, 3 Dec 2015 03:27:53 -0800 (PST) X-Received: by 10.140.92.16 with SMTP id a16mr10458091qge.54.1449142072801; Thu, 03 Dec 2015 03:27:52 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id z203si8193022qka.44.2015.12.03.03.27.52; Thu, 03 Dec 2015 03:27:52 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 5333562C88; Thu, 3 Dec 2015 11:27:52 +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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 3541862C74; Thu, 3 Dec 2015 11:27:48 +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 05E4E62C79; Thu, 3 Dec 2015 11:27:42 +0000 (UTC) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by lists.linaro.org (Postfix) with ESMTPS id 2B91662C0E for ; Thu, 3 Dec 2015 11:27:41 +0000 (UTC) Received: by lffu14 with SMTP id u14so87933085lff.1 for ; Thu, 03 Dec 2015 03:27:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=pMNLX4A62EREgQ3eAG5O1Mq0KRA63i16acPikau+xlA=; b=nsGgHuS/UqxwD5L/c+2ipuU16h4e7QyeHTGSSMKMMSSDpDTAXiTyxcJ0KTR2EX4JLw 9X8KBPwgyXlNJW22aIormaiKMi7k6875PCrhiFqaKLPbxyI8ucTJfuGscrJ3mfAprf5P lOHlj57IUEjrqD+/mtFg3XMC5w/LVn8cUrfaCs3If0AGnzB6EpEsW1ItfaEzKF4k4H/m czD/8nMgbj0lS86Ya598x+SCYxnmiKaNtMKw6s8cudqhnOFShtp3BLJKu85On7Vll4TF rUaqEvAi61048MStQdep4ZzEdt6rPbyhuKefr20/8v1HogsiHfT8f9iGLlUVEcLvpvt0 d/2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pMNLX4A62EREgQ3eAG5O1Mq0KRA63i16acPikau+xlA=; b=AwLa3PRH5rR0DcOhUdfcTRzMk5HCRM2I4s8i2mBt946oqG+1Pf1Jgvmv/Jns67KvA1 qh+JrDlxplGPyJROSDhoxh21FybtuTdb2RSLqMNNqQCQ2YchuVlUUPwW2FB8FOEpgHqA 0XiY1EclV3x3f8jZQGelNsCSiyRDcizTSpEGNXb7QaqCHAGWKSTTBw+jGSp6Zev7DSLa CW2Y+nC2mYi0VbxeiiwUflkLv1TpxRmxAmoR3BE/TwEnIjc5kVZFK7pCtN+pG/WjnmSe Mqyc7bu3dlwTOXgGPciSSGM8Jfd8REKvUTAMwhwmaaVDs+V5LwCkJoSFWloNVBgzx7EU q3/A== X-Gm-Message-State: ALoCoQm2YJ+tRuEqi/155E5IzB5BPWxbIooQdlFHn6chZOBJqFbSvH77Hd5180kUE+R2JuUIipc0 X-Received: by 10.112.202.168 with SMTP id kj8mr5335225lbc.12.1449142060053; Thu, 03 Dec 2015 03:27:40 -0800 (PST) Received: from localhost.localdomain ([195.238.92.128]) by smtp.gmail.com with ESMTPSA id rb3sm1291105lbb.18.2015.12.03.03.27.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Dec 2015 03:27:39 -0800 (PST) From: Ivan Khoronzhuk To: lng-odp@lists.linaro.org Date: Thu, 3 Dec 2015 13:27:32 +0200 Message-Id: <1449142052-10973-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] helper: hashtable: include only needed odp headers 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" No need to include all headers in hashtable and lineartable. rwlock and shared_memory is enough. It allows to see which odp parts are used. Signed-off-by: Ivan Khoronzhuk --- helper/hashtable.c | 3 ++- helper/lineartable.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/helper/hashtable.c b/helper/hashtable.c index 1121beb..07f4c59 100644 --- a/helper/hashtable.c +++ b/helper/hashtable.c @@ -10,7 +10,8 @@ #include "odph_hashtable.h" #include "odph_list_internal.h" #include "odph_debug.h" -#include +#include +#include #define ODPH_SUCCESS 0 #define ODPH_FAIL -1 diff --git a/helper/lineartable.c b/helper/lineartable.c index b0759f9..133f70d 100644 --- a/helper/lineartable.c +++ b/helper/lineartable.c @@ -10,7 +10,8 @@ #include "odph_lineartable.h" #include "odph_debug.h" -#include +#include +#include #define ODPH_SUCCESS 0 #define ODPH_FAIL -1