]> xenbits.xensource.com Git - xen.git/commitdiff
tmem: Some functions are only used internally
authorJulien Grall <julien.grall@linaro.org>
Fri, 4 Apr 2014 09:07:04 +0000 (11:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Apr 2014 09:07:04 +0000 (11:07 +0200)
The list of function above are only used internally in common/tmem:
    - oid_compare
    - oid_set_invalid
    - oid_hash

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/tmem.c

index 02e7e2eaff36dde1908f9f7c23376c8cb481be60..342a6dbf40faff1c65b6b72fa2d57f4f9ed1b179 100644 (file)
@@ -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);