From patchwork Tue Mar 25 16:55:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 27044 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 86D3020539 for ; Tue, 25 Mar 2014 16:57:11 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id hw13sf1491858qab.5 for ; Tue, 25 Mar 2014 09:57:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=yTC/WWEBGD8Eq7T098ikNSiYO9nIl2panUqhz0Tt8ZI=; b=JkI8OykOlhy2sORz797ulQR43K5J/yDvcSafFkDPcaIPA2qxF5zzM9CA1T2hlfjUIy e3KDeIA+HKDVkysLRmEpE5N851Dsey37xfQ1BJoWC+3SGO+vVQWFPCy9/4wpcYNhzSb+ 8mkz97cbSsd+nSdUV6mbojQijAYAc7RU74moO31KrU+BEPttZ0olMWQKX/59CebwNcJU 4azUZM4ZT9USyost57RXLIJ7buNDnuxuug3Kk+cayOhwozgycR7354E79zaPhKqMjpOe y2u6R9UiEY253hlhdWpIFeqikibOUTWXZFvUrFmFpJ8RVaA+k1ZRiTRjik5KMf+KdqyJ s9BA== X-Gm-Message-State: ALoCoQlPL+JBcrbEqu36ttBwAVY2A2kwrnnSy7LoAMZjQ5+0tECqGuNU5KfbeOlyzGlU4YMG3/wb X-Received: by 10.236.27.33 with SMTP id d21mr17882292yha.23.1395766631254; Tue, 25 Mar 2014 09:57:11 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.202 with SMTP id o68ls278268qga.53.gmail; Tue, 25 Mar 2014 09:57:11 -0700 (PDT) X-Received: by 10.52.171.115 with SMTP id at19mr413246vdc.48.1395766631195; Tue, 25 Mar 2014 09:57:11 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id i13si3809196vcx.103.2014.03.25.09.57.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:57:11 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so888151veb.14 for ; Tue, 25 Mar 2014 09:57:11 -0700 (PDT) X-Received: by 10.52.137.74 with SMTP id qg10mr50625vdb.61.1395766631116; Tue, 25 Mar 2014 09:57:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp320292vck; Tue, 25 Mar 2014 09:57:10 -0700 (PDT) X-Received: by 10.140.19.212 with SMTP id 78mr11431302qgh.84.1395766630533; Tue, 25 Mar 2014 09:57:10 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id w16si10930450qge.71.2014.03.25.09.57.09 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Mar 2014 09:57:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUeT-0000Uj-Jb; Tue, 25 Mar 2014 16:56:38 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUeR-0000Qz-Gj for xen-devel@lists.xenproject.org; Tue, 25 Mar 2014 16:56:35 +0000 Received: from [85.158.139.211:26565] by server-2.bemta-5.messagelabs.com id DF/AB-12074-245B1335; Tue, 25 Mar 2014 16:56:34 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-16.tower-206.messagelabs.com!1395766594!3282246!1 X-Originating-IP: [74.125.83.51] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 10598 invoked from network); 25 Mar 2014 16:56:34 -0000 Received: from mail-ee0-f51.google.com (HELO mail-ee0-f51.google.com) (74.125.83.51) by server-16.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 25 Mar 2014 16:56:34 -0000 Received: by mail-ee0-f51.google.com with SMTP id c13so692829eek.10 for ; Tue, 25 Mar 2014 09:56:34 -0700 (PDT) X-Received: by 10.14.182.68 with SMTP id n44mr13121693eem.6.1395766594024; Tue, 25 Mar 2014 09:56:34 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id h47sm33377501eey.13.2014.03.25.09.56.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2014 09:56:33 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Tue, 25 Mar 2014 16:55:29 +0000 Message-Id: <1395766541-23979-23-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH 22/34] xen/common: tmem: Some functions are only used internally X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: The list of function above are only used internally in common/tmem: - oid_compare - oid_set_invalid - oid_hash Signed-off-by: Julien Grall Cc: Konrad Rzeszutek Wilk --- xen/common/tmem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/common/tmem.c b/xen/common/tmem.c index 0a24b3f..5155114 100644 --- a/xen/common/tmem.c +++ b/xen/common/tmem.c @@ -829,7 +829,7 @@ static void rtn_free(struct radix_tree_node *rtn, void *arg) /************ POOL OBJECT COLLECTION MANIPULATION ROUTINES *******************/ -int oid_compare(struct oid *left, struct oid *right) +static int oid_compare(struct oid *left, struct oid *right) { if ( left->oid[2] == right->oid[2] ) { @@ -853,12 +853,12 @@ int oid_compare(struct oid *left, struct oid *right) return 1; } -void oid_set_invalid(struct oid *oidp) +static void oid_set_invalid(struct oid *oidp) { oidp->oid[0] = oidp->oid[1] = oidp->oid[2] = -1UL; } -unsigned oid_hash(struct oid *oidp) +static unsigned oid_hash(struct oid *oidp) { return (tmem_hash(oidp->oid[0] ^ oidp->oid[1] ^ oidp->oid[2], BITS_PER_LONG) & OBJ_HASH_BUCKETS_MASK);