Skip to contentSkip to conversation

staging: lustre: Fix sparse warnings for undeclared symbols

PATCH New Scott Weir 1 participant 1 message Jun 16, 2014 Staging

lore
Share & tools
lore

Scott Weir

author
#0 lore raw

PATCH 1/1 staging: lustre: Fix sparse warnings for undeclared symbols

This patch fixes the sparse warnings in drivers/staging/lustre/lustre/ptlrpc/sec_lproc.c:
sec_lproc.c:58:6: warning: symbol 'sec_flags2str' was not declared. Should it be static?

---
 drivers/staging/lustre/lustre/ptlrpc/sec_lproc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/ptlrpc/sec_lproc.c +1 -1
index 1213621..1928bf5 100644
@@ -55,7 +55,7 @@
 struct proc_dir_entry *sptlrpc_proc_root = NULL;
 EXPORT_SYMBOL(sptlrpc_proc_root);
 
-char *sec_flags2str(unsigned long flags, char *buf, int bufsize)
+static char *sec_flags2str(unsigned long flags, char *buf, int bufsize)
 {
 	buf[0] = '\0';
 

--
1.9.1