X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2Fcl_object.c;h=574ed6801801d8444e0933558bebe11f0785709b;hb=58f3eb928f563f24f0b3ee41970fa23a59fdcb87;hp=739b88d62d5c7553d817a68dd2c1b22e91575e18;hpb=4a2abc926bf7408bbdd13fc0d99dc8abd54d8e37;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/cl_object.c b/lustre/obdclass/cl_object.c index 739b88d..574ed68 100644 --- a/lustre/obdclass/cl_object.c +++ b/lustre/obdclass/cl_object.c @@ -613,7 +613,8 @@ static void cl_env_init0(struct cl_env *cle, void *debug) static cfs_hash_t *cl_env_hash; -static unsigned cl_env_hops_hash(cfs_hash_t *lh, void *key, unsigned mask) +static unsigned cl_env_hops_hash(cfs_hash_t *lh, + const void *key, unsigned mask) { #if BITS_PER_LONG == 64 return cfs_hash_u64_hash((__u64)key, mask); @@ -629,7 +630,7 @@ static void *cl_env_hops_obj(cfs_hlist_node_t *hn) return (void *)cle; } -static int cl_env_hops_keycmp(void *key, cfs_hlist_node_t *hn) +static int cl_env_hops_keycmp(const void *key, cfs_hlist_node_t *hn) { struct cl_env *cle = cl_env_hops_obj(hn);