From: Heena Sirwani Date: Wed, 1 Oct 2014 08:09:28 +0000 (+0530) Subject: Staging: lustre: lnet: selftest: Made a function static. X-Git-Tag: v5.15~17125^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28f54a86138fbc331083a3c11eab59996549f6d8;p=platform%2Fkernel%2Flinux-starfive.git Staging: lustre: lnet: selftest: Made a function static. The following patch makes a function static as it was not used by other files and not declared in the same file. It fixes the following warning: WARNING: symbol 'lstcon_init_acceptor_service' was not declared. Should it be static? The above warning was given by sparse. Signed-off-by: Heena Sirwani Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/selftest/console.c b/drivers/staging/lustre/lnet/selftest/console.c index 68174fd..5dad9f1 100644 --- a/drivers/staging/lustre/lnet/selftest/console.c +++ b/drivers/staging/lustre/lnet/selftest/console.c @@ -1977,7 +1977,7 @@ out: } srpc_service_t lstcon_acceptor_service; -void lstcon_init_acceptor_service(void) +static void lstcon_init_acceptor_service(void) { /* initialize selftest console acceptor service table */ lstcon_acceptor_service.sv_name = "join session";