Whamcloud - gitweb
LU-8191 lnet: remove unused, fix non-static functions 36/51436/2
authorTimothy Day <timday@amazon.com>
Fri, 23 Jun 2023 20:45:23 +0000 (20:45 +0000)
committerOleg Drokin <green@whamcloud.com>
Fri, 14 Jul 2023 03:08:08 +0000 (03:08 +0000)
commit43cbc93f1edc493e47fe5c4059bf0bae6a20c207
tree75aeab23ca3c29150dd1d1a4d9c6b2983818aa4f
parentb4e5faf551189f3e391a7ef268abcf0d584206bd
LU-8191 lnet: remove unused, fix non-static functions

lnet_selftest_structure_assertion() and
lnet_net_is_pref_rtr_locked() are never called.
This patch removes both functions.

Static analysis shows that a number of functions
could be made static. This patch also declares
several functions in lnet static.

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: Ie1b49c5652553715cd9f96b56090d33a95e3b438
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51436
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: jsimmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/o2iblnd/o2iblnd_cb.c
lnet/klnds/socklnd/socklnd.c
lnet/lnet/api-ni.c
lnet/lnet/lib-move.c
lnet/lnet/lib-msg.c
lnet/lnet/module.c
lnet/lnet/peer.c
lnet/selftest/conctl.c
lnet/selftest/module.c