diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2006-08-22 20:06:22 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-22 23:24:51 -0400 |
commit | b86acd501a34227e0ed2b2d54dc8002c1701ce17 (patch) | |
tree | 1f237ba5e565d05a9ed78ebf90d9ff7d1cdade05 /net/sunrpc/clnt.c | |
parent | ff9aa5e56df60cc8565a93cc868fe25ae3f20e49 (diff) |
SUNRPC: export new RPC client functions with _GPL
This patch is optional.
It has been suggested that the RPC client internal functions used by upper
layer protocols (such as NFS) be exported via EXPORT_SYMBOL_GPL. This
patch does that.
Test plan:
Compile kernel with CONFIG_NFS enabled as a module.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 428704dd5b3e..87efcd207f23 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -241,7 +241,7 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args) | |||
241 | 241 | ||
242 | return clnt; | 242 | return clnt; |
243 | } | 243 | } |
244 | EXPORT_SYMBOL(rpc_create); | 244 | EXPORT_SYMBOL_GPL(rpc_create); |
245 | 245 | ||
246 | /* | 246 | /* |
247 | * This function clones the RPC client structure. It allows us to share the | 247 | * This function clones the RPC client structure. It allows us to share the |
@@ -573,7 +573,7 @@ size_t rpc_peeraddr(struct rpc_clnt *clnt, struct sockaddr *buf, size_t bufsize) | |||
573 | memcpy(buf, &clnt->cl_xprt->addr, bytes); | 573 | memcpy(buf, &clnt->cl_xprt->addr, bytes); |
574 | return xprt->addrlen; | 574 | return xprt->addrlen; |
575 | } | 575 | } |
576 | EXPORT_SYMBOL(rpc_peeraddr); | 576 | EXPORT_SYMBOL_GPL(rpc_peeraddr); |
577 | 577 | ||
578 | /** | 578 | /** |
579 | * rpc_peeraddr2str - return remote peer address in printable format | 579 | * rpc_peeraddr2str - return remote peer address in printable format |
@@ -586,7 +586,7 @@ char *rpc_peeraddr2str(struct rpc_clnt *clnt, enum rpc_display_format_t format) | |||
586 | struct rpc_xprt *xprt = clnt->cl_xprt; | 586 | struct rpc_xprt *xprt = clnt->cl_xprt; |
587 | return xprt->ops->print_addr(xprt, format); | 587 | return xprt->ops->print_addr(xprt, format); |
588 | } | 588 | } |
589 | EXPORT_SYMBOL(rpc_peeraddr2str); | 589 | EXPORT_SYMBOL_GPL(rpc_peeraddr2str); |
590 | 590 | ||
591 | void | 591 | void |
592 | rpc_setbufsize(struct rpc_clnt *clnt, unsigned int sndsize, unsigned int rcvsize) | 592 | rpc_setbufsize(struct rpc_clnt *clnt, unsigned int sndsize, unsigned int rcvsize) |
@@ -608,7 +608,7 @@ size_t rpc_max_payload(struct rpc_clnt *clnt) | |||
608 | { | 608 | { |
609 | return clnt->cl_xprt->max_payload; | 609 | return clnt->cl_xprt->max_payload; |
610 | } | 610 | } |
611 | EXPORT_SYMBOL(rpc_max_payload); | 611 | EXPORT_SYMBOL_GPL(rpc_max_payload); |
612 | 612 | ||
613 | /** | 613 | /** |
614 | * rpc_force_rebind - force transport to check that remote port is unchanged | 614 | * rpc_force_rebind - force transport to check that remote port is unchanged |
@@ -620,7 +620,7 @@ void rpc_force_rebind(struct rpc_clnt *clnt) | |||
620 | if (clnt->cl_autobind) | 620 | if (clnt->cl_autobind) |
621 | xprt_clear_bound(clnt->cl_xprt); | 621 | xprt_clear_bound(clnt->cl_xprt); |
622 | } | 622 | } |
623 | EXPORT_SYMBOL(rpc_force_rebind); | 623 | EXPORT_SYMBOL_GPL(rpc_force_rebind); |
624 | 624 | ||
625 | /* | 625 | /* |
626 | * Restart an (async) RPC call. Usually called from within the | 626 | * Restart an (async) RPC call. Usually called from within the |