Whamcloud - gitweb
LU-8837 ptlrpc: mark some functions as static 47/41947/5
authorMr NeilBrown <neilb@suse.de>
Mon, 1 Mar 2021 04:38:42 +0000 (15:38 +1100)
committerOleg Drokin <green@whamcloud.com>
Tue, 16 Mar 2021 18:17:28 +0000 (18:17 +0000)
commitf77e53d3656504c804fe3dd0a3fb72080229b648
treed39ebf156268fd96064617377d7dc3b763a3747f
parent8587508f5ddd7b8e764abb4c6fc078ba0f0bf1ad
LU-8837 ptlrpc: mark some functions as static

The functions
 ptlrpc_start_threads,
 ptlrpc_start_thread,
 ptlrpc_stop_all_threads
 ptlrpc_nrs_policy_register
and
 ptlrpc_nrs_policy_register

are only used in the same file that defines them, so mark them as
'static' and remove the declarations from include files.

 ptlrpc_nrs_policy_unregister

is never used at all, so remove it completely.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Id7862b9da3c58ab980c0fcd4d07c1f119fbf7581
Reviewed-on: https://review.whamcloud.com/41947
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Aurelien Degremont <degremoa@amazon.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
lustre/include/lustre_net.h
lustre/ptlrpc/lproc_ptlrpc.c
lustre/ptlrpc/nrs.c
lustre/ptlrpc/ptlrpc_internal.h
lustre/ptlrpc/service.c