staging:lustre:lustre:ptlrpc: fix sparse warnings in lproc_ptlrpc.c
authorFred Chou <fred.chou.nd@gmail.com>
Mon, 8 Dec 2014 09:52:07 +0000 (17:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 23:30:59 +0000 (15:30 -0800)
Fixed the below warning in sparse:

drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c:184:6:
warning: symbol 'ptlrpc_lprocfs_register' was not declared.
Should it be static?

Signed-off-by: Fred Chou <fred.chou.nd@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c

index 7b22afd0d8fde492d1e725efb4a125e2ec8e8ff4..90448e904d97dcd49d18cb754d2647e29f558f74 100644 (file)
@@ -181,9 +181,10 @@ const char *ll_eopcode2str(__u32 opcode)
        return ll_eopcode_table[opcode].opname;
 }
 #if defined (CONFIG_PROC_FS)
-void ptlrpc_lprocfs_register(struct proc_dir_entry *root, char *dir,
-                            char *name, struct proc_dir_entry **procroot_ret,
-                            struct lprocfs_stats **stats_ret)
+static void ptlrpc_lprocfs_register(struct proc_dir_entry *root, char *dir,
+                                   char *name,
+                                   struct proc_dir_entry **procroot_ret,
+                                   struct lprocfs_stats **stats_ret)
 {
        struct proc_dir_entry *svc_procroot;
        struct lprocfs_stats *svc_stats;