diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-11 15:22:54 -0400 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-11 19:30:02 -0400 |
| commit | 09acfea5d8de419ebe84be43b08f7b79c965215f (patch) | |
| tree | 16f7ef15b00d8601917de6812b9ac951c9458ef6 /include/linux/sunrpc | |
| parent | 17280175c587469b34757263c7cfc608f0ea2334 (diff) | |
SUNRPC: Fix a few sparse warnings
net/sunrpc/svcsock.c:412:22: warning: incorrect type in assignment
(different address spaces)
- svc_partial_recvfrom now takes a struct kvec, so the variable
save_iovbase needs to be an ordinary (void *)
Make a bunch of variables in net/sunrpc/xprtsock.c static
Fix a couple of "warning: symbol 'foo' was not declared. Should it be
static?" reports.
Fix a couple of conflicting function declarations.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc')
| -rw-r--r-- | include/linux/sunrpc/bc_xprt.h | 2 | ||||
| -rw-r--r-- | include/linux/sunrpc/svcauth.h | 3 | ||||
| -rw-r--r-- | include/linux/sunrpc/xprtsock.h | 12 |
3 files changed, 4 insertions, 13 deletions
diff --git a/include/linux/sunrpc/bc_xprt.h b/include/linux/sunrpc/bc_xprt.h index f7f3ce340c0..969c0a671db 100644 --- a/include/linux/sunrpc/bc_xprt.h +++ b/include/linux/sunrpc/bc_xprt.h | |||
| @@ -35,7 +35,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
| 35 | struct rpc_rqst *xprt_alloc_bc_request(struct rpc_xprt *xprt); | 35 | struct rpc_rqst *xprt_alloc_bc_request(struct rpc_xprt *xprt); |
| 36 | void xprt_free_bc_request(struct rpc_rqst *req); | 36 | void xprt_free_bc_request(struct rpc_rqst *req); |
| 37 | int xprt_setup_backchannel(struct rpc_xprt *, unsigned int min_reqs); | 37 | int xprt_setup_backchannel(struct rpc_xprt *, unsigned int min_reqs); |
| 38 | void xprt_destroy_backchannel(struct rpc_xprt *, int max_reqs); | 38 | void xprt_destroy_backchannel(struct rpc_xprt *, unsigned int max_reqs); |
| 39 | int bc_send(struct rpc_rqst *req); | 39 | int bc_send(struct rpc_rqst *req); |
| 40 | 40 | ||
| 41 | /* | 41 | /* |
diff --git a/include/linux/sunrpc/svcauth.h b/include/linux/sunrpc/svcauth.h index 25d333c1b57..548790e9113 100644 --- a/include/linux/sunrpc/svcauth.h +++ b/include/linux/sunrpc/svcauth.h | |||
| @@ -135,6 +135,9 @@ extern void svcauth_unix_purge(void); | |||
| 135 | extern void svcauth_unix_info_release(struct svc_xprt *xpt); | 135 | extern void svcauth_unix_info_release(struct svc_xprt *xpt); |
| 136 | extern int svcauth_unix_set_client(struct svc_rqst *rqstp); | 136 | extern int svcauth_unix_set_client(struct svc_rqst *rqstp); |
| 137 | 137 | ||
| 138 | extern int unix_gid_cache_create(struct net *net); | ||
| 139 | extern void unix_gid_cache_destroy(struct net *net); | ||
| 140 | |||
| 138 | static inline unsigned long hash_str(char *name, int bits) | 141 | static inline unsigned long hash_str(char *name, int bits) |
| 139 | { | 142 | { |
| 140 | unsigned long hash = 0; | 143 | unsigned long hash = 0; |
diff --git a/include/linux/sunrpc/xprtsock.h b/include/linux/sunrpc/xprtsock.h index 3f14a02e9cc..1ad36cc25b2 100644 --- a/include/linux/sunrpc/xprtsock.h +++ b/include/linux/sunrpc/xprtsock.h | |||
| @@ -12,18 +12,6 @@ | |||
| 12 | int init_socket_xprt(void); | 12 | int init_socket_xprt(void); |
| 13 | void cleanup_socket_xprt(void); | 13 | void cleanup_socket_xprt(void); |
| 14 | 14 | ||
| 15 | /* | ||
| 16 | * RPC slot table sizes for UDP, TCP transports | ||
| 17 | */ | ||
| 18 | extern unsigned int xprt_udp_slot_table_entries; | ||
| 19 | extern unsigned int xprt_tcp_slot_table_entries; | ||
| 20 | |||
| 21 | /* | ||
| 22 | * Parameters for choosing a free port | ||
| 23 | */ | ||
| 24 | extern unsigned int xprt_min_resvport; | ||
| 25 | extern unsigned int xprt_max_resvport; | ||
| 26 | |||
| 27 | #define RPC_MIN_RESVPORT (1U) | 15 | #define RPC_MIN_RESVPORT (1U) |
| 28 | #define RPC_MAX_RESVPORT (65535U) | 16 | #define RPC_MAX_RESVPORT (65535U) |
| 29 | #define RPC_DEF_MIN_RESVPORT (665U) | 17 | #define RPC_DEF_MIN_RESVPORT (665U) |
