From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: [PATCH 22/34] xen/common: tmem: Some functions are only used internally Date: Tue, 25 Mar 2014 16:55:29 +0000 Message-ID: <1395766541-23979-23-git-send-email-julien.grall@linaro.org> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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: by mail-ee0-f51.google.com with SMTP id c13so692829eek.10 for ; Tue, 25 Mar 2014 09:56:34 -0700 (PDT) In-Reply-To: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org 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); -- 1.7.10.4