summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKolbeinn Karlsson <kk752@cornell.edu>2015-07-19 16:23:19 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-22 20:49:38 -0700
commit9a2477c2cabddf6fa52eda49502017191b34acb6 (patch)
tree23343b3cbf354cda095a771247d8cda6fb9cec41
parente5c2f7b56e9e37e3b54910164ce73b11f207f19d (diff)
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. Signed-off-by: Kolbeinn Karlsson <kk752@cornell.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/lustre/lustre/ptlrpc/events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/ptlrpc/events.c b/drivers/staging/lustre/lustre/ptlrpc/events.c
index 8cb1929fd31d..c8ef9e578263 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/events.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/events.c
@@ -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;