From: Heena Sirwani Date: Wed, 1 Oct 2014 08:09:28 +0000 (+0530) Subject: Staging: lustre: lnet: selftest: Made a function static. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=28f54a86138fbc331083a3c11eab59996549f6d8;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.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 68174fd07139..5dad9f1f9462 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";