Staging: lustre: lnet: selftest: Made a function static.
authorHeena Sirwani <heenasirwani@gmail.com>
Wed, 1 Oct 2014 08:09:28 +0000 (13:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2014 16:56:46 +0000 (09:56 -0700)
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 <heenasirwani@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/selftest/console.c

index 68174fd0713916ced3d12683e9024989db9df6c2..5dad9f1f9462eccf1c458f3170166e3fc820780f 100644 (file)
@@ -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";
This page took 0.026856 seconds and 5 git commands to generate.