Skip to contentSkip to conversation

staging: lustre: make functions only used locally static

PATCH New Kolbeinn Karlsson 1 participant 1 message Jul 19, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: lustre: make functions only used locally static

Add a static modifier to two functions that have no separate declaration and are only used within the file they are defined in. This problem was reported by sparse.

---
 drivers/staging/lustre/lustre/ptlrpc/events.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/lustre/lustre/ptlrpc/events.c +2 -2
index 8cb1929..c8ef9e5 100644
@@ -485,7 +485,7 @@ int ptlrpc_uuid_to_peer(struct obd_uuid *uuid,
 	return rc;
 }
 
-void ptlrpc_ni_fini(void)
+static void ptlrpc_ni_fini(void)
 {
 	wait_queue_head_t waitq;
 	struct l_wait_info lwi;
@@ -529,7 +529,7 @@ lnet_pid_t ptl_get_pid(void)
 	return pid;
 }
 
-int ptlrpc_ni_init(void)
+static int ptlrpc_ni_init(void)
 {
 	int rc;
 	lnet_pid_t pid;
Signature · 1 line
2.1.4