aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc/svc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sunrpc/svc.h')
-rw-r--r--include/linux/sunrpc/svc.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h
index 5df1d319f5d5..73140ee5c638 100644
--- a/include/linux/sunrpc/svc.h
+++ b/include/linux/sunrpc/svc.h
@@ -147,7 +147,7 @@ struct svc_rqst {
147 short rq_arghi; /* pages available in argument page list */ 147 short rq_arghi; /* pages available in argument page list */
148 short rq_resused; /* pages used for result */ 148 short rq_resused; /* pages used for result */
149 149
150 u32 rq_xid; /* transmission id */ 150 __be32 rq_xid; /* transmission id */
151 u32 rq_prog; /* program number */ 151 u32 rq_prog; /* program number */
152 u32 rq_vers; /* program version */ 152 u32 rq_vers; /* program version */
153 u32 rq_proc; /* procedure number */ 153 u32 rq_proc; /* procedure number */
@@ -156,7 +156,7 @@ struct svc_rqst {
156 rq_secure : 1; /* secure port */ 156 rq_secure : 1; /* secure port */
157 157
158 158
159 __u32 rq_daddr; /* dest addr of request - reply from here */ 159 __be32 rq_daddr; /* dest addr of request - reply from here */
160 160
161 void * rq_argp; /* decoded arguments */ 161 void * rq_argp; /* decoded arguments */
162 void * rq_resp; /* xdr'd results */ 162 void * rq_resp; /* xdr'd results */
@@ -186,7 +186,7 @@ struct svc_rqst {
186 * Check buffer bounds after decoding arguments 186 * Check buffer bounds after decoding arguments
187 */ 187 */
188static inline int 188static inline int
189xdr_argsize_check(struct svc_rqst *rqstp, u32 *p) 189xdr_argsize_check(struct svc_rqst *rqstp, __be32 *p)
190{ 190{
191 char *cp = (char *)p; 191 char *cp = (char *)p;
192 struct kvec *vec = &rqstp->rq_arg.head[0]; 192 struct kvec *vec = &rqstp->rq_arg.head[0];
@@ -195,7 +195,7 @@ xdr_argsize_check(struct svc_rqst *rqstp, u32 *p)
195} 195}
196 196
197static inline int 197static inline int
198xdr_ressize_check(struct svc_rqst *rqstp, u32 *p) 198xdr_ressize_check(struct svc_rqst *rqstp, __be32 *p)
199{ 199{
200 struct kvec *vec = &rqstp->rq_res.head[0]; 200 struct kvec *vec = &rqstp->rq_res.head[0];
201 char *cp = (char*)p; 201 char *cp = (char*)p;
@@ -266,10 +266,10 @@ struct svc_deferred_req {
266 u32 prot; /* protocol (UDP or TCP) */ 266 u32 prot; /* protocol (UDP or TCP) */
267 struct sockaddr_in addr; 267 struct sockaddr_in addr;
268 struct svc_sock *svsk; /* where reply must go */ 268 struct svc_sock *svsk; /* where reply must go */
269 u32 daddr; /* where reply must come from */ 269 __be32 daddr; /* where reply must come from */
270 struct cache_deferred_req handle; 270 struct cache_deferred_req handle;
271 int argslen; 271 int argslen;
272 u32 args[0]; 272 __be32 args[0];
273}; 273};
274 274
275/* 275/*
@@ -301,7 +301,7 @@ struct svc_version {
301 * A return value of 0 means drop the request. 301 * A return value of 0 means drop the request.
302 * vs_dispatch == NULL means use default dispatcher. 302 * vs_dispatch == NULL means use default dispatcher.
303 */ 303 */
304 int (*vs_dispatch)(struct svc_rqst *, u32 *); 304 int (*vs_dispatch)(struct svc_rqst *, __be32 *);
305}; 305};
306 306
307/* 307/*