Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: lustre: service.c: make local functions static

Makes functions that are not used outside the file in which they are defined
static, as reported by sparse:

drivers/staging/lustre/lustre/ptlrpc/service.c:72:35: warning: symbol
'ptlrpc_alloc_rqbd' was not declared. Should it be static?
1065 drivers/staging/lustre/lustre/ptlrpc/service.c:105:1: warning:
symbol 'ptlrpc_free_rqbd' was not declared. Should it be static?
1066 drivers/staging/lustre/lustre/ptlrpc/service.c:122:1: warning:
symbol 'ptlrpc_grow_req_bufs' was not declared. Should it be static?
1067 drivers/staging/lustre/lustre/ptlrpc/service.c:3055:5: warning:
symbol 'ptlrpc_svcpt_health_check' was not declared. Should it be
static?

Signed-off-by: Zoltán Lajos Kis <zoltan.lajos.kis@gmail.com>"
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Zoltán Lajos Kis and committed by
Greg Kroah-Hartman
a96389d9 5b34cd29

+4 -4
+4 -4
drivers/staging/lustre/lustre/ptlrpc/service.c
··· 69 69 /** Used to protect the \e ptlrpc_all_services list */ 70 70 struct mutex ptlrpc_all_services_mutex; 71 71 72 - struct ptlrpc_request_buffer_desc * 72 + static struct ptlrpc_request_buffer_desc * 73 73 ptlrpc_alloc_rqbd(struct ptlrpc_service_part *svcpt) 74 74 { 75 75 struct ptlrpc_service *svc = svcpt->scp_service; ··· 101 101 return rqbd; 102 102 } 103 103 104 - void 104 + static void 105 105 ptlrpc_free_rqbd(struct ptlrpc_request_buffer_desc *rqbd) 106 106 { 107 107 struct ptlrpc_service_part *svcpt = rqbd->rqbd_svcpt; ··· 118 118 kfree(rqbd); 119 119 } 120 120 121 - int 121 + static int 122 122 ptlrpc_grow_req_bufs(struct ptlrpc_service_part *svcpt, int post) 123 123 { 124 124 struct ptlrpc_service *svc = svcpt->scp_service; ··· 3052 3052 * Right now, it just checks to make sure that requests aren't languishing 3053 3053 * in the queue. We'll use this health check to govern whether a node needs 3054 3054 * to be shot, so it's intentionally non-aggressive. */ 3055 - int ptlrpc_svcpt_health_check(struct ptlrpc_service_part *svcpt) 3055 + static int ptlrpc_svcpt_health_check(struct ptlrpc_service_part *svcpt) 3056 3056 { 3057 3057 struct ptlrpc_request *request = NULL; 3058 3058 struct timeval right_now;