pools_hash_params and nid_hash_params are only used in the file where
they are declared - which is best for rhashtable params.
However they are not declared 'static', and one is even EXPORTed.
Change them both to 'static' and remove the EXPORT.
Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ib71f8a7c3bfa38fa54b3653d51786a3d8da6117f
Reviewed-on: https://review.whamcloud.com/39730
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
return strcmp(pool_name, pool->pool_name);
}
-const struct rhashtable_params pools_hash_params = {
+static const struct rhashtable_params pools_hash_params = {
.key_len = 1, /* actually variable */
.key_offset = offsetof(struct pool_desc, pool_name),
.head_offset = offsetof(struct pool_desc, pool_hash),
.obj_cmpfn = pool_cmpfn,
.automatic_shrinking = true,
};
-EXPORT_SYMBOL(pools_hash_params);
/*
* Methods for /proc seq_file iteration of the defined pools.
class_export_put(exp);
}
-const struct rhashtable_params nid_hash_params = {
+static const struct rhashtable_params nid_hash_params = {
.key_len = sizeof(lnet_nid_t),
.head_offset = offsetof(struct obd_export, exp_nid_hash),
.obj_hashfn = nid_keyhash,