diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-14 15:39:58 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-01-30 02:05:28 -0500 |
commit | a6eaf8bdf9308b51ec84e358915fc65400029519 (patch) | |
tree | f704135c09272357d9e9bf2d2a39636006518c3e /net/sunrpc/clnt.c | |
parent | 93a44a75b97b9d8a03dd3d3f3247c3d0ec46aa4c (diff) |
SUNRPC: Move exported declarations to the function declarations
Do this for all RPC client related functions and XDR functions.
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, 10 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 046d8f68483b..5b561f9b6a17 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -345,6 +345,7 @@ out_no_clnt: | |||
345 | dprintk("RPC: %s: returned error %d\n", __FUNCTION__, err); | 345 | dprintk("RPC: %s: returned error %d\n", __FUNCTION__, err); |
346 | return ERR_PTR(err); | 346 | return ERR_PTR(err); |
347 | } | 347 | } |
348 | EXPORT_SYMBOL(rpc_clone_client); | ||
348 | 349 | ||
349 | /* | 350 | /* |
350 | * Properly shut down an RPC client, terminating all outstanding | 351 | * Properly shut down an RPC client, terminating all outstanding |
@@ -363,6 +364,7 @@ void rpc_shutdown_client(struct rpc_clnt *clnt) | |||
363 | 364 | ||
364 | rpc_release_client(clnt); | 365 | rpc_release_client(clnt); |
365 | } | 366 | } |
367 | EXPORT_SYMBOL(rpc_shutdown_client); | ||
366 | 368 | ||
367 | /* | 369 | /* |
368 | * Free an RPC client | 370 | * Free an RPC client |
@@ -467,6 +469,7 @@ struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *old, | |||
467 | out: | 469 | out: |
468 | return clnt; | 470 | return clnt; |
469 | } | 471 | } |
472 | EXPORT_SYMBOL(rpc_bind_new_program); | ||
470 | 473 | ||
471 | /* | 474 | /* |
472 | * Default callback for async RPC calls | 475 | * Default callback for async RPC calls |
@@ -512,11 +515,13 @@ void rpc_clnt_sigmask(struct rpc_clnt *clnt, sigset_t *oldset) | |||
512 | { | 515 | { |
513 | rpc_save_sigmask(oldset, clnt->cl_intr); | 516 | rpc_save_sigmask(oldset, clnt->cl_intr); |
514 | } | 517 | } |
518 | EXPORT_SYMBOL(rpc_clnt_sigmask); | ||
515 | 519 | ||
516 | void rpc_clnt_sigunmask(struct rpc_clnt *clnt, sigset_t *oldset) | 520 | void rpc_clnt_sigunmask(struct rpc_clnt *clnt, sigset_t *oldset) |
517 | { | 521 | { |
518 | rpc_restore_sigmask(oldset); | 522 | rpc_restore_sigmask(oldset); |
519 | } | 523 | } |
524 | EXPORT_SYMBOL(rpc_clnt_sigunmask); | ||
520 | 525 | ||
521 | static | 526 | static |
522 | struct rpc_task *rpc_do_run_task(struct rpc_clnt *clnt, | 527 | struct rpc_task *rpc_do_run_task(struct rpc_clnt *clnt, |
@@ -572,6 +577,7 @@ int rpc_call_sync(struct rpc_clnt *clnt, struct rpc_message *msg, int flags) | |||
572 | rpc_put_task(task); | 577 | rpc_put_task(task); |
573 | return status; | 578 | return status; |
574 | } | 579 | } |
580 | EXPORT_SYMBOL(rpc_call_sync); | ||
575 | 581 | ||
576 | /** | 582 | /** |
577 | * rpc_call_async - Perform an asynchronous RPC call | 583 | * rpc_call_async - Perform an asynchronous RPC call |
@@ -593,6 +599,7 @@ rpc_call_async(struct rpc_clnt *clnt, struct rpc_message *msg, int flags, | |||
593 | rpc_put_task(task); | 599 | rpc_put_task(task); |
594 | return 0; | 600 | return 0; |
595 | } | 601 | } |
602 | EXPORT_SYMBOL(rpc_call_async); | ||
596 | 603 | ||
597 | /** | 604 | /** |
598 | * rpc_run_task - Allocate a new RPC task, then run rpc_execute against it | 605 | * rpc_run_task - Allocate a new RPC task, then run rpc_execute against it |
@@ -625,6 +632,7 @@ rpc_call_setup(struct rpc_task *task, struct rpc_message *msg, int flags) | |||
625 | else | 632 | else |
626 | task->tk_action = rpc_exit_task; | 633 | task->tk_action = rpc_exit_task; |
627 | } | 634 | } |
635 | EXPORT_SYMBOL(rpc_call_setup); | ||
628 | 636 | ||
629 | /** | 637 | /** |
630 | * rpc_peeraddr - extract remote peer address from clnt's xprt | 638 | * rpc_peeraddr - extract remote peer address from clnt's xprt |
@@ -671,6 +679,7 @@ rpc_setbufsize(struct rpc_clnt *clnt, unsigned int sndsize, unsigned int rcvsize | |||
671 | if (xprt->ops->set_buffer_size) | 679 | if (xprt->ops->set_buffer_size) |
672 | xprt->ops->set_buffer_size(xprt, sndsize, rcvsize); | 680 | xprt->ops->set_buffer_size(xprt, sndsize, rcvsize); |
673 | } | 681 | } |
682 | EXPORT_SYMBOL(rpc_setbufsize); | ||
674 | 683 | ||
675 | /* | 684 | /* |
676 | * Return size of largest payload RPC client can support, in bytes | 685 | * Return size of largest payload RPC client can support, in bytes |
@@ -710,6 +719,7 @@ rpc_restart_call(struct rpc_task *task) | |||
710 | 719 | ||
711 | task->tk_action = call_start; | 720 | task->tk_action = call_start; |
712 | } | 721 | } |
722 | EXPORT_SYMBOL(rpc_restart_call); | ||
713 | 723 | ||
714 | /* | 724 | /* |
715 | * 0. Initial state | 725 | * 0. Initial state |