Staging: lustre: Make obd_proc_version_seq_show static
authorDarshana Padmadas <darshanapadmadas@gmail.com>
Sat, 28 Mar 2015 17:43:52 +0000 (23:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2015 15:33:56 +0000 (17:33 +0200)
The function obd_proc_version_seq_show is only used in this
file, so make it static.

This eliminates the following sparse warning:
warning: symbol 'obd_proc_version_seq_show' was not declared. Should it be static?

Signed-off-by: Darshana Padmadas <darshanapadmadas@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/linux/linux-module.c

index 75e704d..06944b8 100644 (file)
@@ -217,7 +217,7 @@ struct miscdevice obd_psdev = {
 
 
 #if defined (CONFIG_PROC_FS)
-int obd_proc_version_seq_show(struct seq_file *m, void *v)
+static int obd_proc_version_seq_show(struct seq_file *m, void *v)
 {
        seq_printf(m, "lustre: %s\nkernel: %s\nbuild:  %s\n",
                   LUSTRE_VERSION_STRING, "patchless_client", BUILD_VERSION);