public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] staging: lustre: fix static declarations in libcfs
@ 2015-08-12  9:51 Maxime Lorrillere
  2015-08-12  9:51 ` [PATCH 2/2] staging: lustre: fix symbol redeclared with different type " Maxime Lorrillere
  2015-08-14  5:58 ` [PATCH 1/2] staging: lustre: fix static declarations " Sudip Mukherjee
  0 siblings, 2 replies; 5+ messages in thread
From: Maxime Lorrillere @ 2015-08-12  9:51 UTC (permalink / raw)
  To: Oleg Drokin, Andreas Dilger, Greg Kroah-Hartman
  Cc: linux-kernel, Maxime Lorrillere

This patch fix the following sparse warnings in libcfs/linux/linux-debug.c:
>>> linux-debug.c:64:6: warning: symbol 'lnet_upcall' was not declared. Should it be static?
>>> linux-debug.c:65:6: warning: symbol 'lnet_debug_log_upcall' was not declared. Should it be static?

Signed-off-by: Maxime Lorrillere <maxime.lorrillere@gmail.com>
---
 drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c b/drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c
index 4545d54..f0331fa 100644
--- a/drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c
+++ b/drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c
@@ -61,8 +61,9 @@
 
 #include <linux/kallsyms.h>
 
-char lnet_upcall[1024] = "/usr/lib/lustre/lnet_upcall";
-char lnet_debug_log_upcall[1024] = "/usr/lib/lustre/lnet_debug_log_upcall";
+static char lnet_upcall[1024] = "/usr/lib/lustre/lnet_upcall";
+static char lnet_debug_log_upcall[1024] =
+	"/usr/lib/lustre/lnet_debug_log_upcall";
 
 /**
  * Upcall function once a Lustre log has been dumped.
-- 
2.5.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-08-15  1:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-12  9:51 [PATCH 1/2] staging: lustre: fix static declarations in libcfs Maxime Lorrillere
2015-08-12  9:51 ` [PATCH 2/2] staging: lustre: fix symbol redeclared with different type " Maxime Lorrillere
2015-08-14  5:58 ` [PATCH 1/2] staging: lustre: fix static declarations " Sudip Mukherjee
2015-08-14 14:00   ` Maxime Lorrillere
2015-08-15  1:49     ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox