Skip to contentSkip to conversation

staging:lustre:lustre:ptlrpc: fix sparse warnings in lproc_ptlrpc.c

PATCH New Fred Chou 1 participant 1 message Dec 8, 2014 Staging

lore
Share & tools
lore

Fred Chou

author
#0 lore raw

PATCH 1/1 staging:lustre:lustre:ptlrpc: fix sparse warnings in lproc_ptlrpc.c

From: Fred Chou <[email protected]>

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?

---
 drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c +4 -3
index 4011e00..4c0d48e 100644
@@ -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;
Signature · 1 line
1.9.1