aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/rpcb_clnt.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2009-08-09 15:09:41 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-08-09 15:09:41 -0400
commit0d36c4f7574d5a33bedd8f0e3c793490d45d83c6 (patch)
tree85a68d9f456caae67c4ce0431a636a073faed785 /net/sunrpc/rpcb_clnt.c
parent6f2c2db7a46243bd86e3d7ff5f9ff982f26a9fe8 (diff)
SUNRPC: Clean up: Remove unused XDR encoder functions from rpcb_clnt.c
Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/rpcb_clnt.c')
-rw-r--r--net/sunrpc/rpcb_clnt.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c
index 823d20dbad09..e0d7b31e54a7 100644
--- a/net/sunrpc/rpcb_clnt.c
+++ b/net/sunrpc/rpcb_clnt.c
@@ -694,20 +694,6 @@ static void rpcb_getport_done(struct rpc_task *child, void *data)
694 * XDR functions for rpcbind 694 * XDR functions for rpcbind
695 */ 695 */
696 696
697static int rpcb_encode_mapping(struct rpc_rqst *req, __be32 *p,
698 struct rpcbind_args *rpcb)
699{
700 dprintk("RPC: encoding rpcb request (%u, %u, %d, %u)\n",
701 rpcb->r_prog, rpcb->r_vers, rpcb->r_prot, rpcb->r_port);
702 *p++ = htonl(rpcb->r_prog);
703 *p++ = htonl(rpcb->r_vers);
704 *p++ = htonl(rpcb->r_prot);
705 *p++ = htonl(rpcb->r_port);
706
707 req->rq_slen = xdr_adjust_iovec(req->rq_svec, p);
708 return 0;
709}
710
711static int rpcb_enc_mapping(struct rpc_rqst *req, __be32 *p, 697static int rpcb_enc_mapping(struct rpc_rqst *req, __be32 *p,
712 const struct rpcbind_args *rpcb) 698 const struct rpcbind_args *rpcb)
713{ 699{
@@ -750,26 +736,6 @@ static int rpcb_decode_set(struct rpc_rqst *req, __be32 *p,
750 return 0; 736 return 0;
751} 737}
752 738
753static int rpcb_encode_getaddr(struct rpc_rqst *req, __be32 *p,
754 struct rpcbind_args *rpcb)
755{
756 if (rpcb->r_addr == NULL)
757 return -EIO;
758
759 dprintk("RPC: encoding rpcb request (%u, %u, %s)\n",
760 rpcb->r_prog, rpcb->r_vers, rpcb->r_addr);
761 *p++ = htonl(rpcb->r_prog);
762 *p++ = htonl(rpcb->r_vers);
763
764 p = xdr_encode_string(p, rpcb->r_netid);
765 p = xdr_encode_string(p, rpcb->r_addr);
766 p = xdr_encode_string(p, rpcb->r_owner);
767
768 req->rq_slen = xdr_adjust_iovec(req->rq_svec, p);
769
770 return 0;
771}
772
773static int encode_rpcb_string(struct xdr_stream *xdr, const char *string, 739static int encode_rpcb_string(struct xdr_stream *xdr, const char *string,
774 const u32 maxstrlen) 740 const u32 maxstrlen)
775{ 741{