aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-06-23 10:17:16 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-10 23:40:34 -0400
commit64c91a1f1c8bc4295fd6b90df8adf911a7dd64f4 (patch)
tree62b8166a9638b6d349779fa2f77f3d7bd18e1aea
parentfc1b356f566fe05929ec2a88ce2c7b15f8b6279f (diff)
SUNRPC: Make rpc_ping() static
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r--include/linux/sunrpc/clnt.h1
-rw-r--r--net/sunrpc/clnt.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h
index a451351c7eff..a0e51e193284 100644
--- a/include/linux/sunrpc/clnt.h
+++ b/include/linux/sunrpc/clnt.h
@@ -136,7 +136,6 @@ void rpc_clnt_sigunmask(struct rpc_clnt *clnt, sigset_t *oldset);
136void rpc_setbufsize(struct rpc_clnt *, unsigned int, unsigned int); 136void rpc_setbufsize(struct rpc_clnt *, unsigned int, unsigned int);
137size_t rpc_max_payload(struct rpc_clnt *); 137size_t rpc_max_payload(struct rpc_clnt *);
138void rpc_force_rebind(struct rpc_clnt *); 138void rpc_force_rebind(struct rpc_clnt *);
139int rpc_ping(struct rpc_clnt *clnt, int flags);
140size_t rpc_peeraddr(struct rpc_clnt *, struct sockaddr *, size_t); 139size_t rpc_peeraddr(struct rpc_clnt *, struct sockaddr *, size_t);
141char * rpc_peeraddr2str(struct rpc_clnt *, enum rpc_display_format_t); 140char * rpc_peeraddr2str(struct rpc_clnt *, enum rpc_display_format_t);
142 141
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 76eef19cf995..4e91f3110938 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -72,6 +72,8 @@ static void call_connect_status(struct rpc_task *task);
72static __be32 * call_header(struct rpc_task *task); 72static __be32 * call_header(struct rpc_task *task);
73static __be32 * call_verify(struct rpc_task *task); 73static __be32 * call_verify(struct rpc_task *task);
74 74
75static int rpc_ping(struct rpc_clnt *clnt, int flags);
76
75static void rpc_register_client(struct rpc_clnt *clnt) 77static void rpc_register_client(struct rpc_clnt *clnt)
76{ 78{
77 spin_lock(&rpc_client_lock); 79 spin_lock(&rpc_client_lock);
@@ -1441,7 +1443,7 @@ static struct rpc_procinfo rpcproc_null = {
1441 .p_decode = rpcproc_decode_null, 1443 .p_decode = rpcproc_decode_null,
1442}; 1444};
1443 1445
1444int rpc_ping(struct rpc_clnt *clnt, int flags) 1446static int rpc_ping(struct rpc_clnt *clnt, int flags)
1445{ 1447{
1446 struct rpc_message msg = { 1448 struct rpc_message msg = {
1447 .rpc_proc = &rpcproc_null, 1449 .rpc_proc = &rpcproc_null,