aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/clnt.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-14 15:39:59 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-01-30 02:05:28 -0500
commite8914c65f7f8d4e8701b8e78a12b714872ea0402 (patch)
tree54e0834fce6e8b834ad400e010e76215e7eb76e4 /net/sunrpc/clnt.c
parenta6eaf8bdf9308b51ec84e358915fc65400029519 (diff)
SUNRPC: Restrict sunrpc client exports
The sunrpc client exports are not meant to be part of any official kernel API: they can change at the drop of a hat. Mark them as internal functions using EXPORT_SYMBOL_GPL. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r--net/sunrpc/clnt.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 5b561f9b6a17..22092b91dd85 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -345,7 +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}
348EXPORT_SYMBOL(rpc_clone_client); 348EXPORT_SYMBOL_GPL(rpc_clone_client);
349 349
350/* 350/*
351 * Properly shut down an RPC client, terminating all outstanding 351 * Properly shut down an RPC client, terminating all outstanding
@@ -364,7 +364,7 @@ void rpc_shutdown_client(struct rpc_clnt *clnt)
364 364
365 rpc_release_client(clnt); 365 rpc_release_client(clnt);
366} 366}
367EXPORT_SYMBOL(rpc_shutdown_client); 367EXPORT_SYMBOL_GPL(rpc_shutdown_client);
368 368
369/* 369/*
370 * Free an RPC client 370 * Free an RPC client
@@ -469,7 +469,7 @@ struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *old,
469out: 469out:
470 return clnt; 470 return clnt;
471} 471}
472EXPORT_SYMBOL(rpc_bind_new_program); 472EXPORT_SYMBOL_GPL(rpc_bind_new_program);
473 473
474/* 474/*
475 * Default callback for async RPC calls 475 * Default callback for async RPC calls
@@ -515,13 +515,13 @@ void rpc_clnt_sigmask(struct rpc_clnt *clnt, sigset_t *oldset)
515{ 515{
516 rpc_save_sigmask(oldset, clnt->cl_intr); 516 rpc_save_sigmask(oldset, clnt->cl_intr);
517} 517}
518EXPORT_SYMBOL(rpc_clnt_sigmask); 518EXPORT_SYMBOL_GPL(rpc_clnt_sigmask);
519 519
520void rpc_clnt_sigunmask(struct rpc_clnt *clnt, sigset_t *oldset) 520void rpc_clnt_sigunmask(struct rpc_clnt *clnt, sigset_t *oldset)
521{ 521{
522 rpc_restore_sigmask(oldset); 522 rpc_restore_sigmask(oldset);
523} 523}
524EXPORT_SYMBOL(rpc_clnt_sigunmask); 524EXPORT_SYMBOL_GPL(rpc_clnt_sigunmask);
525 525
526static 526static
527struct rpc_task *rpc_do_run_task(struct rpc_clnt *clnt, 527struct rpc_task *rpc_do_run_task(struct rpc_clnt *clnt,
@@ -577,7 +577,7 @@ int rpc_call_sync(struct rpc_clnt *clnt, struct rpc_message *msg, int flags)
577 rpc_put_task(task); 577 rpc_put_task(task);
578 return status; 578 return status;
579} 579}
580EXPORT_SYMBOL(rpc_call_sync); 580EXPORT_SYMBOL_GPL(rpc_call_sync);
581 581
582/** 582/**
583 * rpc_call_async - Perform an asynchronous RPC call 583 * rpc_call_async - Perform an asynchronous RPC call
@@ -599,7 +599,7 @@ rpc_call_async(struct rpc_clnt *clnt, struct rpc_message *msg, int flags,
599 rpc_put_task(task); 599 rpc_put_task(task);
600 return 0; 600 return 0;
601} 601}
602EXPORT_SYMBOL(rpc_call_async); 602EXPORT_SYMBOL_GPL(rpc_call_async);
603 603
604/** 604/**
605 * 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
@@ -614,7 +614,7 @@ struct rpc_task *rpc_run_task(struct rpc_clnt *clnt, int flags,
614{ 614{
615 return rpc_do_run_task(clnt, NULL, flags, tk_ops, data); 615 return rpc_do_run_task(clnt, NULL, flags, tk_ops, data);
616} 616}
617EXPORT_SYMBOL(rpc_run_task); 617EXPORT_SYMBOL_GPL(rpc_run_task);
618 618
619void 619void
620rpc_call_setup(struct rpc_task *task, struct rpc_message *msg, int flags) 620rpc_call_setup(struct rpc_task *task, struct rpc_message *msg, int flags)
@@ -632,7 +632,7 @@ rpc_call_setup(struct rpc_task *task, struct rpc_message *msg, int flags)
632 else 632 else
633 task->tk_action = rpc_exit_task; 633 task->tk_action = rpc_exit_task;
634} 634}
635EXPORT_SYMBOL(rpc_call_setup); 635EXPORT_SYMBOL_GPL(rpc_call_setup);
636 636
637/** 637/**
638 * rpc_peeraddr - extract remote peer address from clnt's xprt 638 * rpc_peeraddr - extract remote peer address from clnt's xprt
@@ -679,7 +679,7 @@ rpc_setbufsize(struct rpc_clnt *clnt, unsigned int sndsize, unsigned int rcvsize
679 if (xprt->ops->set_buffer_size) 679 if (xprt->ops->set_buffer_size)
680 xprt->ops->set_buffer_size(xprt, sndsize, rcvsize); 680 xprt->ops->set_buffer_size(xprt, sndsize, rcvsize);
681} 681}
682EXPORT_SYMBOL(rpc_setbufsize); 682EXPORT_SYMBOL_GPL(rpc_setbufsize);
683 683
684/* 684/*
685 * Return size of largest payload RPC client can support, in bytes 685 * Return size of largest payload RPC client can support, in bytes
@@ -719,7 +719,7 @@ rpc_restart_call(struct rpc_task *task)
719 719
720 task->tk_action = call_start; 720 task->tk_action = call_start;
721} 721}
722EXPORT_SYMBOL(rpc_restart_call); 722EXPORT_SYMBOL_GPL(rpc_restart_call);
723 723
724/* 724/*
725 * 0. Initial state 725 * 0. Initial state
@@ -1529,7 +1529,7 @@ struct rpc_task *rpc_call_null(struct rpc_clnt *clnt, struct rpc_cred *cred, int
1529 }; 1529 };
1530 return rpc_do_run_task(clnt, &msg, flags, &rpc_default_ops, NULL); 1530 return rpc_do_run_task(clnt, &msg, flags, &rpc_default_ops, NULL);
1531} 1531}
1532EXPORT_SYMBOL(rpc_call_null); 1532EXPORT_SYMBOL_GPL(rpc_call_null);
1533 1533
1534#ifdef RPC_DEBUG 1534#ifdef RPC_DEBUG
1535void rpc_show_tasks(void) 1535void rpc_show_tasks(void)