From patchwork Tue Aug 2 07:54:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 73148 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp18334qga; Tue, 2 Aug 2016 01:05:43 -0700 (PDT) X-Received: by 10.55.43.34 with SMTP id r34mr36841205qkh.128.1470125143111; Tue, 02 Aug 2016 01:05:43 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id z68si912430qkb.225.2016.08.02.01.05.42; Tue, 02 Aug 2016 01:05:43 -0700 (PDT) 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; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 442FC6856B; Tue, 2 Aug 2016 08:05:42 +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, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 030146844D; Tue, 2 Aug 2016 08:05:39 +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 048FB684B6; Tue, 2 Aug 2016 08:05:36 +0000 (UTC) Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) by lists.linaro.org (Postfix) with ESMTPS id 96F7968448 for ; Tue, 2 Aug 2016 08:05:35 +0000 (UTC) Received: by mail-lf0-f47.google.com with SMTP id f93so132443489lfi.2 for ; Tue, 02 Aug 2016 01:05:35 -0700 (PDT) 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=dyvJfuvm0b5C6y+P9dZk2WQadHubn+E4jBucZnPNex4=; b=M+3jFts7beZFeBxQ5K4x3qdqYsmc2XFXBL+iEE9BWErC2kYnkFY3LPynIrg4wTrycc QFyCzTHLq/2Rjc3T4g2Z47CgtF/H+PU7j30kUsUrUXszAYsS978rg0IaF1GuM+aQnhOP 4B4O+jrw3cMxC/T/1qe34sm72O3bYybwtdCkI8acirPf0upIzxkiQY1UbPUDJaLpVRJq ztYGpdpDa6HuFTMkt0ZCKRFGob6b3VEtsFlLvz+nrEJaEFKolI3n/9Q7dM0ki2hGlzaN HIk2/kARFT18zBjHE7eUuUk4vJG947eXcP/XjhAj1pSK3SvtA/kgFx6BJlTuGNHqLOx8 u/WA== X-Gm-Message-State: AEkoouuf/MR6fXM9vDSCAiTHJizklMLzCsLvYyOicZX7JJ+4kRkAUxRnsXWnScqbraxzbncTOKg= X-Received: by 10.25.27.139 with SMTP id b133mr17600953lfb.157.1470125134313; Tue, 02 Aug 2016 01:05:34 -0700 (PDT) Received: from localhost (c-c82171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.200]) by smtp.gmail.com with ESMTPSA id a15sm248882lfb.34.2016.08.02.01.05.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Aug 2016 01:05:33 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 2 Aug 2016 09:54:34 +0200 Message-Id: <1470124474-3489-1-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [PATCH] helper/hashtable: use static to hide private functions 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" Signed-off-by: Anders Roxell --- helper/hashtable.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.1.4 diff --git a/helper/hashtable.c b/helper/hashtable.c index 8bb1ae5..f17b80f 100644 --- a/helper/hashtable.c +++ b/helper/hashtable.c @@ -164,7 +164,7 @@ odph_table_t odph_hash_table_lookup(const char *name) * This hash algorithm is the most simple one, so we choose it as an DEMO * User can use any other algorithm, like CRC... */ -uint16_t odp_key_hash(void *key, uint32_t key_size) +static uint16_t odp_key_hash(void *key, uint32_t key_size) { register uint32_t hash = 0; uint32_t idx = (key_size == 0 ? 1 : key_size); @@ -181,7 +181,7 @@ uint16_t odp_key_hash(void *key, uint32_t key_size) /** * Get an available node from pool */ -odph_hash_node *odp_hashnode_take(odph_table_t table) +static odph_hash_node *odp_hashnode_take(odph_table_t table) { odph_hash_table_imp *tbl = (odph_hash_table_imp *)table; uint32_t idx; @@ -208,7 +208,7 @@ odph_hash_node *odp_hashnode_take(odph_table_t table) /** * Release an node to the pool */ -void odp_hashnode_give(odph_table_t table, odph_hash_node *node) +static void odp_hashnode_give(odph_table_t table, odph_hash_node *node) { odph_hash_table_imp *tbl = (odph_hash_table_imp *)table;