diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-02-14 11:11:30 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-02-14 11:17:24 -0500 |
commit | cbc20059259edee4ea24c923e6627c394830c972 (patch) | |
tree | 648caf84d855d497880fdd0cfb58319806d80fd1 | |
parent | 2785259631697ebb0749a3782cca206e2e542939 (diff) |
SUNRPC: Declare as const the rpc_message arguments to rpc_call_sync/async
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r-- | include/linux/sunrpc/clnt.h | 9 | ||||
-rw-r--r-- | net/sunrpc/clnt.c | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index 129a86e25d29..6fff7f82ef12 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h | |||
@@ -127,11 +127,12 @@ int rpcb_getport_sync(struct sockaddr_in *, u32, u32, int); | |||
127 | void rpcb_getport_async(struct rpc_task *); | 127 | void rpcb_getport_async(struct rpc_task *); |
128 | 128 | ||
129 | void rpc_call_start(struct rpc_task *); | 129 | void rpc_call_start(struct rpc_task *); |
130 | int rpc_call_async(struct rpc_clnt *clnt, struct rpc_message *msg, | 130 | int rpc_call_async(struct rpc_clnt *clnt, |
131 | int flags, const struct rpc_call_ops *tk_ops, | 131 | const struct rpc_message *msg, int flags, |
132 | const struct rpc_call_ops *tk_ops, | ||
132 | void *calldata); | 133 | void *calldata); |
133 | int rpc_call_sync(struct rpc_clnt *clnt, struct rpc_message *msg, | 134 | int rpc_call_sync(struct rpc_clnt *clnt, |
134 | int flags); | 135 | const struct rpc_message *msg, int flags); |
135 | struct rpc_task *rpc_call_null(struct rpc_clnt *clnt, struct rpc_cred *cred, | 136 | struct rpc_task *rpc_call_null(struct rpc_clnt *clnt, struct rpc_cred *cred, |
136 | int flags); | 137 | int flags); |
137 | void rpc_restart_call(struct rpc_task *); | 138 | void rpc_restart_call(struct rpc_task *); |
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 8c6a7f1a25e9..a23512bb240d 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -548,7 +548,7 @@ EXPORT_SYMBOL_GPL(rpc_run_task); | |||
548 | * @msg: RPC call parameters | 548 | * @msg: RPC call parameters |
549 | * @flags: RPC call flags | 549 | * @flags: RPC call flags |
550 | */ | 550 | */ |
551 | int rpc_call_sync(struct rpc_clnt *clnt, struct rpc_message *msg, int flags) | 551 | int rpc_call_sync(struct rpc_clnt *clnt, const struct rpc_message *msg, int flags) |
552 | { | 552 | { |
553 | struct rpc_task *task; | 553 | struct rpc_task *task; |
554 | struct rpc_task_setup task_setup_data = { | 554 | struct rpc_task_setup task_setup_data = { |
@@ -579,7 +579,7 @@ EXPORT_SYMBOL_GPL(rpc_call_sync); | |||
579 | * @data: user call data | 579 | * @data: user call data |
580 | */ | 580 | */ |
581 | int | 581 | int |
582 | rpc_call_async(struct rpc_clnt *clnt, struct rpc_message *msg, int flags, | 582 | rpc_call_async(struct rpc_clnt *clnt, const struct rpc_message *msg, int flags, |
583 | const struct rpc_call_ops *tk_ops, void *data) | 583 | const struct rpc_call_ops *tk_ops, void *data) |
584 | { | 584 | { |
585 | struct rpc_task *task; | 585 | struct rpc_task *task; |