diff options
-rw-r--r-- | fs/lockd/svc4proc.c | 40 | ||||
-rw-r--r-- | fs/lockd/svcproc.c | 40 | ||||
-rw-r--r-- | fs/nfs/callback_xdr.c | 4 | ||||
-rw-r--r-- | fs/nfsd/nfs2acl.c | 10 | ||||
-rw-r--r-- | fs/nfsd/nfs3acl.c | 6 | ||||
-rw-r--r-- | fs/nfsd/nfs3proc.c | 44 | ||||
-rw-r--r-- | fs/nfsd/nfs4proc.c | 4 | ||||
-rw-r--r-- | fs/nfsd/nfsproc.c | 32 | ||||
-rw-r--r-- | include/linux/sunrpc/svc.h | 2 |
9 files changed, 91 insertions, 91 deletions
diff --git a/fs/lockd/svc4proc.c b/fs/lockd/svc4proc.c index 399ad11b97be..4e719860b4bf 100644 --- a/fs/lockd/svc4proc.c +++ b/fs/lockd/svc4proc.c | |||
@@ -68,7 +68,7 @@ no_locks: | |||
68 | /* | 68 | /* |
69 | * NULL: Test for presence of service | 69 | * NULL: Test for presence of service |
70 | */ | 70 | */ |
71 | static int | 71 | static __be32 |
72 | nlm4svc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) | 72 | nlm4svc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) |
73 | { | 73 | { |
74 | dprintk("lockd: NULL called\n"); | 74 | dprintk("lockd: NULL called\n"); |
@@ -78,7 +78,7 @@ nlm4svc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) | |||
78 | /* | 78 | /* |
79 | * TEST: Check for conflicting lock | 79 | * TEST: Check for conflicting lock |
80 | */ | 80 | */ |
81 | static int | 81 | static __be32 |
82 | nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, | 82 | nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, |
83 | struct nlm_res *resp) | 83 | struct nlm_res *resp) |
84 | { | 84 | { |
@@ -107,7 +107,7 @@ nlm4svc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
107 | return rpc_success; | 107 | return rpc_success; |
108 | } | 108 | } |
109 | 109 | ||
110 | static int | 110 | static __be32 |
111 | nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, | 111 | nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, |
112 | struct nlm_res *resp) | 112 | struct nlm_res *resp) |
113 | { | 113 | { |
@@ -150,7 +150,7 @@ nlm4svc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
150 | return rpc_success; | 150 | return rpc_success; |
151 | } | 151 | } |
152 | 152 | ||
153 | static int | 153 | static __be32 |
154 | nlm4svc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, | 154 | nlm4svc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, |
155 | struct nlm_res *resp) | 155 | struct nlm_res *resp) |
156 | { | 156 | { |
@@ -183,7 +183,7 @@ nlm4svc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
183 | /* | 183 | /* |
184 | * UNLOCK: release a lock | 184 | * UNLOCK: release a lock |
185 | */ | 185 | */ |
186 | static int | 186 | static __be32 |
187 | nlm4svc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp, | 187 | nlm4svc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp, |
188 | struct nlm_res *resp) | 188 | struct nlm_res *resp) |
189 | { | 189 | { |
@@ -217,7 +217,7 @@ nlm4svc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
217 | * GRANTED: A server calls us to tell that a process' lock request | 217 | * GRANTED: A server calls us to tell that a process' lock request |
218 | * was granted | 218 | * was granted |
219 | */ | 219 | */ |
220 | static int | 220 | static __be32 |
221 | nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, | 221 | nlm4svc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, |
222 | struct nlm_res *resp) | 222 | struct nlm_res *resp) |
223 | { | 223 | { |
@@ -253,12 +253,12 @@ static const struct rpc_call_ops nlm4svc_callback_ops = { | |||
253 | * because we send the callback before the reply proper. I hope this | 253 | * because we send the callback before the reply proper. I hope this |
254 | * doesn't break any clients. | 254 | * doesn't break any clients. |
255 | */ | 255 | */ |
256 | static int nlm4svc_callback(struct svc_rqst *rqstp, u32 proc, struct nlm_args *argp, | 256 | static __be32 nlm4svc_callback(struct svc_rqst *rqstp, u32 proc, struct nlm_args *argp, |
257 | int (*func)(struct svc_rqst *, struct nlm_args *, struct nlm_res *)) | 257 | __be32 (*func)(struct svc_rqst *, struct nlm_args *, struct nlm_res *)) |
258 | { | 258 | { |
259 | struct nlm_host *host; | 259 | struct nlm_host *host; |
260 | struct nlm_rqst *call; | 260 | struct nlm_rqst *call; |
261 | int stat; | 261 | __be32 stat; |
262 | 262 | ||
263 | host = nlmsvc_lookup_host(rqstp, | 263 | host = nlmsvc_lookup_host(rqstp, |
264 | argp->lock.caller, | 264 | argp->lock.caller, |
@@ -282,35 +282,35 @@ static int nlm4svc_callback(struct svc_rqst *rqstp, u32 proc, struct nlm_args *a | |||
282 | return rpc_success; | 282 | return rpc_success; |
283 | } | 283 | } |
284 | 284 | ||
285 | static int nlm4svc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp, | 285 | static __be32 nlm4svc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp, |
286 | void *resp) | 286 | void *resp) |
287 | { | 287 | { |
288 | dprintk("lockd: TEST_MSG called\n"); | 288 | dprintk("lockd: TEST_MSG called\n"); |
289 | return nlm4svc_callback(rqstp, NLMPROC_TEST_RES, argp, nlm4svc_proc_test); | 289 | return nlm4svc_callback(rqstp, NLMPROC_TEST_RES, argp, nlm4svc_proc_test); |
290 | } | 290 | } |
291 | 291 | ||
292 | static int nlm4svc_proc_lock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, | 292 | static __be32 nlm4svc_proc_lock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, |
293 | void *resp) | 293 | void *resp) |
294 | { | 294 | { |
295 | dprintk("lockd: LOCK_MSG called\n"); | 295 | dprintk("lockd: LOCK_MSG called\n"); |
296 | return nlm4svc_callback(rqstp, NLMPROC_LOCK_RES, argp, nlm4svc_proc_lock); | 296 | return nlm4svc_callback(rqstp, NLMPROC_LOCK_RES, argp, nlm4svc_proc_lock); |
297 | } | 297 | } |
298 | 298 | ||
299 | static int nlm4svc_proc_cancel_msg(struct svc_rqst *rqstp, struct nlm_args *argp, | 299 | static __be32 nlm4svc_proc_cancel_msg(struct svc_rqst *rqstp, struct nlm_args *argp, |
300 | void *resp) | 300 | void *resp) |
301 | { | 301 | { |
302 | dprintk("lockd: CANCEL_MSG called\n"); | 302 | dprintk("lockd: CANCEL_MSG called\n"); |
303 | return nlm4svc_callback(rqstp, NLMPROC_CANCEL_RES, argp, nlm4svc_proc_cancel); | 303 | return nlm4svc_callback(rqstp, NLMPROC_CANCEL_RES, argp, nlm4svc_proc_cancel); |
304 | } | 304 | } |
305 | 305 | ||
306 | static int nlm4svc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, | 306 | static __be32 nlm4svc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, |
307 | void *resp) | 307 | void *resp) |
308 | { | 308 | { |
309 | dprintk("lockd: UNLOCK_MSG called\n"); | 309 | dprintk("lockd: UNLOCK_MSG called\n"); |
310 | return nlm4svc_callback(rqstp, NLMPROC_UNLOCK_RES, argp, nlm4svc_proc_unlock); | 310 | return nlm4svc_callback(rqstp, NLMPROC_UNLOCK_RES, argp, nlm4svc_proc_unlock); |
311 | } | 311 | } |
312 | 312 | ||
313 | static int nlm4svc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, | 313 | static __be32 nlm4svc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, |
314 | void *resp) | 314 | void *resp) |
315 | { | 315 | { |
316 | dprintk("lockd: GRANTED_MSG called\n"); | 316 | dprintk("lockd: GRANTED_MSG called\n"); |
@@ -320,7 +320,7 @@ static int nlm4svc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *arg | |||
320 | /* | 320 | /* |
321 | * SHARE: create a DOS share or alter existing share. | 321 | * SHARE: create a DOS share or alter existing share. |
322 | */ | 322 | */ |
323 | static int | 323 | static __be32 |
324 | nlm4svc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp, | 324 | nlm4svc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp, |
325 | struct nlm_res *resp) | 325 | struct nlm_res *resp) |
326 | { | 326 | { |
@@ -353,7 +353,7 @@ nlm4svc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
353 | /* | 353 | /* |
354 | * UNSHARE: Release a DOS share. | 354 | * UNSHARE: Release a DOS share. |
355 | */ | 355 | */ |
356 | static int | 356 | static __be32 |
357 | nlm4svc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, | 357 | nlm4svc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, |
358 | struct nlm_res *resp) | 358 | struct nlm_res *resp) |
359 | { | 359 | { |
@@ -386,7 +386,7 @@ nlm4svc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
386 | /* | 386 | /* |
387 | * NM_LOCK: Create an unmonitored lock | 387 | * NM_LOCK: Create an unmonitored lock |
388 | */ | 388 | */ |
389 | static int | 389 | static __be32 |
390 | nlm4svc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, | 390 | nlm4svc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, |
391 | struct nlm_res *resp) | 391 | struct nlm_res *resp) |
392 | { | 392 | { |
@@ -399,7 +399,7 @@ nlm4svc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
399 | /* | 399 | /* |
400 | * FREE_ALL: Release all locks and shares held by client | 400 | * FREE_ALL: Release all locks and shares held by client |
401 | */ | 401 | */ |
402 | static int | 402 | static __be32 |
403 | nlm4svc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp, | 403 | nlm4svc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp, |
404 | void *resp) | 404 | void *resp) |
405 | { | 405 | { |
@@ -417,7 +417,7 @@ nlm4svc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
417 | /* | 417 | /* |
418 | * SM_NOTIFY: private callback from statd (not part of official NLM proto) | 418 | * SM_NOTIFY: private callback from statd (not part of official NLM proto) |
419 | */ | 419 | */ |
420 | static int | 420 | static __be32 |
421 | nlm4svc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, | 421 | nlm4svc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, |
422 | void *resp) | 422 | void *resp) |
423 | { | 423 | { |
@@ -446,7 +446,7 @@ nlm4svc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, | |||
446 | /* | 446 | /* |
447 | * client sent a GRANTED_RES, let's remove the associated block | 447 | * client sent a GRANTED_RES, let's remove the associated block |
448 | */ | 448 | */ |
449 | static int | 449 | static __be32 |
450 | nlm4svc_proc_granted_res(struct svc_rqst *rqstp, struct nlm_res *argp, | 450 | nlm4svc_proc_granted_res(struct svc_rqst *rqstp, struct nlm_res *argp, |
451 | void *resp) | 451 | void *resp) |
452 | { | 452 | { |
diff --git a/fs/lockd/svcproc.c b/fs/lockd/svcproc.c index 6a931f4ab75c..db8d85c32d29 100644 --- a/fs/lockd/svcproc.c +++ b/fs/lockd/svcproc.c | |||
@@ -96,7 +96,7 @@ no_locks: | |||
96 | /* | 96 | /* |
97 | * NULL: Test for presence of service | 97 | * NULL: Test for presence of service |
98 | */ | 98 | */ |
99 | static int | 99 | static __be32 |
100 | nlmsvc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) | 100 | nlmsvc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) |
101 | { | 101 | { |
102 | dprintk("lockd: NULL called\n"); | 102 | dprintk("lockd: NULL called\n"); |
@@ -106,7 +106,7 @@ nlmsvc_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) | |||
106 | /* | 106 | /* |
107 | * TEST: Check for conflicting lock | 107 | * TEST: Check for conflicting lock |
108 | */ | 108 | */ |
109 | static int | 109 | static __be32 |
110 | nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, | 110 | nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, |
111 | struct nlm_res *resp) | 111 | struct nlm_res *resp) |
112 | { | 112 | { |
@@ -136,7 +136,7 @@ nlmsvc_proc_test(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
136 | return rpc_success; | 136 | return rpc_success; |
137 | } | 137 | } |
138 | 138 | ||
139 | static int | 139 | static __be32 |
140 | nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, | 140 | nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, |
141 | struct nlm_res *resp) | 141 | struct nlm_res *resp) |
142 | { | 142 | { |
@@ -179,7 +179,7 @@ nlmsvc_proc_lock(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
179 | return rpc_success; | 179 | return rpc_success; |
180 | } | 180 | } |
181 | 181 | ||
182 | static int | 182 | static __be32 |
183 | nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, | 183 | nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, |
184 | struct nlm_res *resp) | 184 | struct nlm_res *resp) |
185 | { | 185 | { |
@@ -212,7 +212,7 @@ nlmsvc_proc_cancel(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
212 | /* | 212 | /* |
213 | * UNLOCK: release a lock | 213 | * UNLOCK: release a lock |
214 | */ | 214 | */ |
215 | static int | 215 | static __be32 |
216 | nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp, | 216 | nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp, |
217 | struct nlm_res *resp) | 217 | struct nlm_res *resp) |
218 | { | 218 | { |
@@ -246,7 +246,7 @@ nlmsvc_proc_unlock(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
246 | * GRANTED: A server calls us to tell that a process' lock request | 246 | * GRANTED: A server calls us to tell that a process' lock request |
247 | * was granted | 247 | * was granted |
248 | */ | 248 | */ |
249 | static int | 249 | static __be32 |
250 | nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, | 250 | nlmsvc_proc_granted(struct svc_rqst *rqstp, struct nlm_args *argp, |
251 | struct nlm_res *resp) | 251 | struct nlm_res *resp) |
252 | { | 252 | { |
@@ -282,12 +282,12 @@ static const struct rpc_call_ops nlmsvc_callback_ops = { | |||
282 | * because we send the callback before the reply proper. I hope this | 282 | * because we send the callback before the reply proper. I hope this |
283 | * doesn't break any clients. | 283 | * doesn't break any clients. |
284 | */ | 284 | */ |
285 | static int nlmsvc_callback(struct svc_rqst *rqstp, u32 proc, struct nlm_args *argp, | 285 | static __be32 nlmsvc_callback(struct svc_rqst *rqstp, u32 proc, struct nlm_args *argp, |
286 | int (*func)(struct svc_rqst *, struct nlm_args *, struct nlm_res *)) | 286 | __be32 (*func)(struct svc_rqst *, struct nlm_args *, struct nlm_res *)) |
287 | { | 287 | { |
288 | struct nlm_host *host; | 288 | struct nlm_host *host; |
289 | struct nlm_rqst *call; | 289 | struct nlm_rqst *call; |
290 | int stat; | 290 | __be32 stat; |
291 | 291 | ||
292 | host = nlmsvc_lookup_host(rqstp, | 292 | host = nlmsvc_lookup_host(rqstp, |
293 | argp->lock.caller, | 293 | argp->lock.caller, |
@@ -311,28 +311,28 @@ static int nlmsvc_callback(struct svc_rqst *rqstp, u32 proc, struct nlm_args *ar | |||
311 | return rpc_success; | 311 | return rpc_success; |
312 | } | 312 | } |
313 | 313 | ||
314 | static int nlmsvc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp, | 314 | static __be32 nlmsvc_proc_test_msg(struct svc_rqst *rqstp, struct nlm_args *argp, |
315 | void *resp) | 315 | void *resp) |
316 | { | 316 | { |
317 | dprintk("lockd: TEST_MSG called\n"); | 317 | dprintk("lockd: TEST_MSG called\n"); |
318 | return nlmsvc_callback(rqstp, NLMPROC_TEST_RES, argp, nlmsvc_proc_test); | 318 | return nlmsvc_callback(rqstp, NLMPROC_TEST_RES, argp, nlmsvc_proc_test); |
319 | } | 319 | } |
320 | 320 | ||
321 | static int nlmsvc_proc_lock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, | 321 | static __be32 nlmsvc_proc_lock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, |
322 | void *resp) | 322 | void *resp) |
323 | { | 323 | { |
324 | dprintk("lockd: LOCK_MSG called\n"); | 324 | dprintk("lockd: LOCK_MSG called\n"); |
325 | return nlmsvc_callback(rqstp, NLMPROC_LOCK_RES, argp, nlmsvc_proc_lock); | 325 | return nlmsvc_callback(rqstp, NLMPROC_LOCK_RES, argp, nlmsvc_proc_lock); |
326 | } | 326 | } |
327 | 327 | ||
328 | static int nlmsvc_proc_cancel_msg(struct svc_rqst *rqstp, struct nlm_args *argp, | 328 | static __be32 nlmsvc_proc_cancel_msg(struct svc_rqst *rqstp, struct nlm_args *argp, |
329 | void *resp) | 329 | void *resp) |
330 | { | 330 | { |
331 | dprintk("lockd: CANCEL_MSG called\n"); | 331 | dprintk("lockd: CANCEL_MSG called\n"); |
332 | return nlmsvc_callback(rqstp, NLMPROC_CANCEL_RES, argp, nlmsvc_proc_cancel); | 332 | return nlmsvc_callback(rqstp, NLMPROC_CANCEL_RES, argp, nlmsvc_proc_cancel); |
333 | } | 333 | } |
334 | 334 | ||
335 | static int | 335 | static __be32 |
336 | nlmsvc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, | 336 | nlmsvc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, |
337 | void *resp) | 337 | void *resp) |
338 | { | 338 | { |
@@ -340,7 +340,7 @@ nlmsvc_proc_unlock_msg(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
340 | return nlmsvc_callback(rqstp, NLMPROC_UNLOCK_RES, argp, nlmsvc_proc_unlock); | 340 | return nlmsvc_callback(rqstp, NLMPROC_UNLOCK_RES, argp, nlmsvc_proc_unlock); |
341 | } | 341 | } |
342 | 342 | ||
343 | static int | 343 | static __be32 |
344 | nlmsvc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, | 344 | nlmsvc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, |
345 | void *resp) | 345 | void *resp) |
346 | { | 346 | { |
@@ -351,7 +351,7 @@ nlmsvc_proc_granted_msg(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
351 | /* | 351 | /* |
352 | * SHARE: create a DOS share or alter existing share. | 352 | * SHARE: create a DOS share or alter existing share. |
353 | */ | 353 | */ |
354 | static int | 354 | static __be32 |
355 | nlmsvc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp, | 355 | nlmsvc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp, |
356 | struct nlm_res *resp) | 356 | struct nlm_res *resp) |
357 | { | 357 | { |
@@ -384,7 +384,7 @@ nlmsvc_proc_share(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
384 | /* | 384 | /* |
385 | * UNSHARE: Release a DOS share. | 385 | * UNSHARE: Release a DOS share. |
386 | */ | 386 | */ |
387 | static int | 387 | static __be32 |
388 | nlmsvc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, | 388 | nlmsvc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, |
389 | struct nlm_res *resp) | 389 | struct nlm_res *resp) |
390 | { | 390 | { |
@@ -417,7 +417,7 @@ nlmsvc_proc_unshare(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
417 | /* | 417 | /* |
418 | * NM_LOCK: Create an unmonitored lock | 418 | * NM_LOCK: Create an unmonitored lock |
419 | */ | 419 | */ |
420 | static int | 420 | static __be32 |
421 | nlmsvc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, | 421 | nlmsvc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, |
422 | struct nlm_res *resp) | 422 | struct nlm_res *resp) |
423 | { | 423 | { |
@@ -430,7 +430,7 @@ nlmsvc_proc_nm_lock(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
430 | /* | 430 | /* |
431 | * FREE_ALL: Release all locks and shares held by client | 431 | * FREE_ALL: Release all locks and shares held by client |
432 | */ | 432 | */ |
433 | static int | 433 | static __be32 |
434 | nlmsvc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp, | 434 | nlmsvc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp, |
435 | void *resp) | 435 | void *resp) |
436 | { | 436 | { |
@@ -448,7 +448,7 @@ nlmsvc_proc_free_all(struct svc_rqst *rqstp, struct nlm_args *argp, | |||
448 | /* | 448 | /* |
449 | * SM_NOTIFY: private callback from statd (not part of official NLM proto) | 449 | * SM_NOTIFY: private callback from statd (not part of official NLM proto) |
450 | */ | 450 | */ |
451 | static int | 451 | static __be32 |
452 | nlmsvc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, | 452 | nlmsvc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, |
453 | void *resp) | 453 | void *resp) |
454 | { | 454 | { |
@@ -477,7 +477,7 @@ nlmsvc_proc_sm_notify(struct svc_rqst *rqstp, struct nlm_reboot *argp, | |||
477 | /* | 477 | /* |
478 | * client sent a GRANTED_RES, let's remove the associated block | 478 | * client sent a GRANTED_RES, let's remove the associated block |
479 | */ | 479 | */ |
480 | static int | 480 | static __be32 |
481 | nlmsvc_proc_granted_res(struct svc_rqst *rqstp, struct nlm_res *argp, | 481 | nlmsvc_proc_granted_res(struct svc_rqst *rqstp, struct nlm_res *argp, |
482 | void *resp) | 482 | void *resp) |
483 | { | 483 | { |
diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c index 29f932192054..5998d0c71757 100644 --- a/fs/nfs/callback_xdr.c +++ b/fs/nfs/callback_xdr.c | |||
@@ -36,7 +36,7 @@ struct callback_op { | |||
36 | 36 | ||
37 | static struct callback_op callback_ops[]; | 37 | static struct callback_op callback_ops[]; |
38 | 38 | ||
39 | static int nfs4_callback_null(struct svc_rqst *rqstp, void *argp, void *resp) | 39 | static __be32 nfs4_callback_null(struct svc_rqst *rqstp, void *argp, void *resp) |
40 | { | 40 | { |
41 | return htonl(NFS4_OK); | 41 | return htonl(NFS4_OK); |
42 | } | 42 | } |
@@ -399,7 +399,7 @@ static unsigned process_op(struct svc_rqst *rqstp, | |||
399 | /* | 399 | /* |
400 | * Decode, process and encode a COMPOUND | 400 | * Decode, process and encode a COMPOUND |
401 | */ | 401 | */ |
402 | static int nfs4_callback_compound(struct svc_rqst *rqstp, void *argp, void *resp) | 402 | static __be32 nfs4_callback_compound(struct svc_rqst *rqstp, void *argp, void *resp) |
403 | { | 403 | { |
404 | struct cb_compound_hdr_arg hdr_arg; | 404 | struct cb_compound_hdr_arg hdr_arg; |
405 | struct cb_compound_hdr_res hdr_res; | 405 | struct cb_compound_hdr_res hdr_res; |
diff --git a/fs/nfsd/nfs2acl.c b/fs/nfsd/nfs2acl.c index 9187755661df..8d48616882c1 100644 --- a/fs/nfsd/nfs2acl.c +++ b/fs/nfsd/nfs2acl.c | |||
@@ -21,7 +21,7 @@ | |||
21 | /* | 21 | /* |
22 | * NULL call. | 22 | * NULL call. |
23 | */ | 23 | */ |
24 | static int | 24 | static __be32 |
25 | nfsacld_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) | 25 | nfsacld_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) |
26 | { | 26 | { |
27 | return nfs_ok; | 27 | return nfs_ok; |
@@ -30,7 +30,7 @@ nfsacld_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) | |||
30 | /* | 30 | /* |
31 | * Get the Access and/or Default ACL of a file. | 31 | * Get the Access and/or Default ACL of a file. |
32 | */ | 32 | */ |
33 | static int nfsacld_proc_getacl(struct svc_rqst * rqstp, | 33 | static __be32 nfsacld_proc_getacl(struct svc_rqst * rqstp, |
34 | struct nfsd3_getaclargs *argp, struct nfsd3_getaclres *resp) | 34 | struct nfsd3_getaclargs *argp, struct nfsd3_getaclres *resp) |
35 | { | 35 | { |
36 | svc_fh *fh; | 36 | svc_fh *fh; |
@@ -97,7 +97,7 @@ fail: | |||
97 | /* | 97 | /* |
98 | * Set the Access and/or Default ACL of a file. | 98 | * Set the Access and/or Default ACL of a file. |
99 | */ | 99 | */ |
100 | static int nfsacld_proc_setacl(struct svc_rqst * rqstp, | 100 | static __be32 nfsacld_proc_setacl(struct svc_rqst * rqstp, |
101 | struct nfsd3_setaclargs *argp, | 101 | struct nfsd3_setaclargs *argp, |
102 | struct nfsd_attrstat *resp) | 102 | struct nfsd_attrstat *resp) |
103 | { | 103 | { |
@@ -128,7 +128,7 @@ static int nfsacld_proc_setacl(struct svc_rqst * rqstp, | |||
128 | /* | 128 | /* |
129 | * Check file attributes | 129 | * Check file attributes |
130 | */ | 130 | */ |
131 | static int nfsacld_proc_getattr(struct svc_rqst * rqstp, | 131 | static __be32 nfsacld_proc_getattr(struct svc_rqst * rqstp, |
132 | struct nfsd_fhandle *argp, struct nfsd_attrstat *resp) | 132 | struct nfsd_fhandle *argp, struct nfsd_attrstat *resp) |
133 | { | 133 | { |
134 | dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); | 134 | dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); |
@@ -140,7 +140,7 @@ static int nfsacld_proc_getattr(struct svc_rqst * rqstp, | |||
140 | /* | 140 | /* |
141 | * Check file access | 141 | * Check file access |
142 | */ | 142 | */ |
143 | static int nfsacld_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, | 143 | static __be32 nfsacld_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, |
144 | struct nfsd3_accessres *resp) | 144 | struct nfsd3_accessres *resp) |
145 | { | 145 | { |
146 | int nfserr; | 146 | int nfserr; |
diff --git a/fs/nfsd/nfs3acl.c b/fs/nfsd/nfs3acl.c index d4bdc00c1169..ed6e2c27b5e8 100644 --- a/fs/nfsd/nfs3acl.c +++ b/fs/nfsd/nfs3acl.c | |||
@@ -19,7 +19,7 @@ | |||
19 | /* | 19 | /* |
20 | * NULL call. | 20 | * NULL call. |
21 | */ | 21 | */ |
22 | static int | 22 | static __be32 |
23 | nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) | 23 | nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) |
24 | { | 24 | { |
25 | return nfs_ok; | 25 | return nfs_ok; |
@@ -28,7 +28,7 @@ nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) | |||
28 | /* | 28 | /* |
29 | * Get the Access and/or Default ACL of a file. | 29 | * Get the Access and/or Default ACL of a file. |
30 | */ | 30 | */ |
31 | static int nfsd3_proc_getacl(struct svc_rqst * rqstp, | 31 | static __be32 nfsd3_proc_getacl(struct svc_rqst * rqstp, |
32 | struct nfsd3_getaclargs *argp, struct nfsd3_getaclres *resp) | 32 | struct nfsd3_getaclargs *argp, struct nfsd3_getaclres *resp) |
33 | { | 33 | { |
34 | svc_fh *fh; | 34 | svc_fh *fh; |
@@ -93,7 +93,7 @@ fail: | |||
93 | /* | 93 | /* |
94 | * Set the Access and/or Default ACL of a file. | 94 | * Set the Access and/or Default ACL of a file. |
95 | */ | 95 | */ |
96 | static int nfsd3_proc_setacl(struct svc_rqst * rqstp, | 96 | static __be32 nfsd3_proc_setacl(struct svc_rqst * rqstp, |
97 | struct nfsd3_setaclargs *argp, | 97 | struct nfsd3_setaclargs *argp, |
98 | struct nfsd3_attrstat *resp) | 98 | struct nfsd3_attrstat *resp) |
99 | { | 99 | { |
diff --git a/fs/nfsd/nfs3proc.c b/fs/nfsd/nfs3proc.c index a5ebc7dbb384..a12663fdfe16 100644 --- a/fs/nfsd/nfs3proc.c +++ b/fs/nfsd/nfs3proc.c | |||
@@ -43,7 +43,7 @@ static int nfs3_ftypes[] = { | |||
43 | /* | 43 | /* |
44 | * NULL call. | 44 | * NULL call. |
45 | */ | 45 | */ |
46 | static int | 46 | static __be32 |
47 | nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) | 47 | nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) |
48 | { | 48 | { |
49 | return nfs_ok; | 49 | return nfs_ok; |
@@ -52,7 +52,7 @@ nfsd3_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) | |||
52 | /* | 52 | /* |
53 | * Get a file's attributes | 53 | * Get a file's attributes |
54 | */ | 54 | */ |
55 | static int | 55 | static __be32 |
56 | nfsd3_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, | 56 | nfsd3_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, |
57 | struct nfsd3_attrstat *resp) | 57 | struct nfsd3_attrstat *resp) |
58 | { | 58 | { |
@@ -76,7 +76,7 @@ nfsd3_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, | |||
76 | /* | 76 | /* |
77 | * Set a file's attributes | 77 | * Set a file's attributes |
78 | */ | 78 | */ |
79 | static int | 79 | static __be32 |
80 | nfsd3_proc_setattr(struct svc_rqst *rqstp, struct nfsd3_sattrargs *argp, | 80 | nfsd3_proc_setattr(struct svc_rqst *rqstp, struct nfsd3_sattrargs *argp, |
81 | struct nfsd3_attrstat *resp) | 81 | struct nfsd3_attrstat *resp) |
82 | { | 82 | { |
@@ -94,7 +94,7 @@ nfsd3_proc_setattr(struct svc_rqst *rqstp, struct nfsd3_sattrargs *argp, | |||
94 | /* | 94 | /* |
95 | * Look up a path name component | 95 | * Look up a path name component |
96 | */ | 96 | */ |
97 | static int | 97 | static __be32 |
98 | nfsd3_proc_lookup(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, | 98 | nfsd3_proc_lookup(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, |
99 | struct nfsd3_diropres *resp) | 99 | struct nfsd3_diropres *resp) |
100 | { | 100 | { |
@@ -118,7 +118,7 @@ nfsd3_proc_lookup(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, | |||
118 | /* | 118 | /* |
119 | * Check file access | 119 | * Check file access |
120 | */ | 120 | */ |
121 | static int | 121 | static __be32 |
122 | nfsd3_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, | 122 | nfsd3_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, |
123 | struct nfsd3_accessres *resp) | 123 | struct nfsd3_accessres *resp) |
124 | { | 124 | { |
@@ -137,7 +137,7 @@ nfsd3_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, | |||
137 | /* | 137 | /* |
138 | * Read a symlink. | 138 | * Read a symlink. |
139 | */ | 139 | */ |
140 | static int | 140 | static __be32 |
141 | nfsd3_proc_readlink(struct svc_rqst *rqstp, struct nfsd3_readlinkargs *argp, | 141 | nfsd3_proc_readlink(struct svc_rqst *rqstp, struct nfsd3_readlinkargs *argp, |
142 | struct nfsd3_readlinkres *resp) | 142 | struct nfsd3_readlinkres *resp) |
143 | { | 143 | { |
@@ -155,7 +155,7 @@ nfsd3_proc_readlink(struct svc_rqst *rqstp, struct nfsd3_readlinkargs *argp, | |||
155 | /* | 155 | /* |
156 | * Read a portion of a file. | 156 | * Read a portion of a file. |
157 | */ | 157 | */ |
158 | static int | 158 | static __be32 |
159 | nfsd3_proc_read(struct svc_rqst *rqstp, struct nfsd3_readargs *argp, | 159 | nfsd3_proc_read(struct svc_rqst *rqstp, struct nfsd3_readargs *argp, |
160 | struct nfsd3_readres *resp) | 160 | struct nfsd3_readres *resp) |
161 | { | 161 | { |
@@ -195,7 +195,7 @@ nfsd3_proc_read(struct svc_rqst *rqstp, struct nfsd3_readargs *argp, | |||
195 | /* | 195 | /* |
196 | * Write data to a file | 196 | * Write data to a file |
197 | */ | 197 | */ |
198 | static int | 198 | static __be32 |
199 | nfsd3_proc_write(struct svc_rqst *rqstp, struct nfsd3_writeargs *argp, | 199 | nfsd3_proc_write(struct svc_rqst *rqstp, struct nfsd3_writeargs *argp, |
200 | struct nfsd3_writeres *resp) | 200 | struct nfsd3_writeres *resp) |
201 | { | 201 | { |
@@ -223,7 +223,7 @@ nfsd3_proc_write(struct svc_rqst *rqstp, struct nfsd3_writeargs *argp, | |||
223 | * At least in theory; we'll see how it fares in practice when the | 223 | * At least in theory; we'll see how it fares in practice when the |
224 | * first reports about SunOS compatibility problems start to pour in... | 224 | * first reports about SunOS compatibility problems start to pour in... |
225 | */ | 225 | */ |
226 | static int | 226 | static __be32 |
227 | nfsd3_proc_create(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, | 227 | nfsd3_proc_create(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, |
228 | struct nfsd3_diropres *resp) | 228 | struct nfsd3_diropres *resp) |
229 | { | 229 | { |
@@ -265,7 +265,7 @@ nfsd3_proc_create(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, | |||
265 | /* | 265 | /* |
266 | * Make directory. This operation is not idempotent. | 266 | * Make directory. This operation is not idempotent. |
267 | */ | 267 | */ |
268 | static int | 268 | static __be32 |
269 | nfsd3_proc_mkdir(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, | 269 | nfsd3_proc_mkdir(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, |
270 | struct nfsd3_diropres *resp) | 270 | struct nfsd3_diropres *resp) |
271 | { | 271 | { |
@@ -285,7 +285,7 @@ nfsd3_proc_mkdir(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, | |||
285 | RETURN_STATUS(nfserr); | 285 | RETURN_STATUS(nfserr); |
286 | } | 286 | } |
287 | 287 | ||
288 | static int | 288 | static __be32 |
289 | nfsd3_proc_symlink(struct svc_rqst *rqstp, struct nfsd3_symlinkargs *argp, | 289 | nfsd3_proc_symlink(struct svc_rqst *rqstp, struct nfsd3_symlinkargs *argp, |
290 | struct nfsd3_diropres *resp) | 290 | struct nfsd3_diropres *resp) |
291 | { | 291 | { |
@@ -307,7 +307,7 @@ nfsd3_proc_symlink(struct svc_rqst *rqstp, struct nfsd3_symlinkargs *argp, | |||
307 | /* | 307 | /* |
308 | * Make socket/fifo/device. | 308 | * Make socket/fifo/device. |
309 | */ | 309 | */ |
310 | static int | 310 | static __be32 |
311 | nfsd3_proc_mknod(struct svc_rqst *rqstp, struct nfsd3_mknodargs *argp, | 311 | nfsd3_proc_mknod(struct svc_rqst *rqstp, struct nfsd3_mknodargs *argp, |
312 | struct nfsd3_diropres *resp) | 312 | struct nfsd3_diropres *resp) |
313 | { | 313 | { |
@@ -343,7 +343,7 @@ nfsd3_proc_mknod(struct svc_rqst *rqstp, struct nfsd3_mknodargs *argp, | |||
343 | /* | 343 | /* |
344 | * Remove file/fifo/socket etc. | 344 | * Remove file/fifo/socket etc. |
345 | */ | 345 | */ |
346 | static int | 346 | static __be32 |
347 | nfsd3_proc_remove(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, | 347 | nfsd3_proc_remove(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, |
348 | struct nfsd3_attrstat *resp) | 348 | struct nfsd3_attrstat *resp) |
349 | { | 349 | { |
@@ -363,7 +363,7 @@ nfsd3_proc_remove(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, | |||
363 | /* | 363 | /* |
364 | * Remove a directory | 364 | * Remove a directory |
365 | */ | 365 | */ |
366 | static int | 366 | static __be32 |
367 | nfsd3_proc_rmdir(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, | 367 | nfsd3_proc_rmdir(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, |
368 | struct nfsd3_attrstat *resp) | 368 | struct nfsd3_attrstat *resp) |
369 | { | 369 | { |
@@ -379,7 +379,7 @@ nfsd3_proc_rmdir(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, | |||
379 | RETURN_STATUS(nfserr); | 379 | RETURN_STATUS(nfserr); |
380 | } | 380 | } |
381 | 381 | ||
382 | static int | 382 | static __be32 |
383 | nfsd3_proc_rename(struct svc_rqst *rqstp, struct nfsd3_renameargs *argp, | 383 | nfsd3_proc_rename(struct svc_rqst *rqstp, struct nfsd3_renameargs *argp, |
384 | struct nfsd3_renameres *resp) | 384 | struct nfsd3_renameres *resp) |
385 | { | 385 | { |
@@ -401,7 +401,7 @@ nfsd3_proc_rename(struct svc_rqst *rqstp, struct nfsd3_renameargs *argp, | |||
401 | RETURN_STATUS(nfserr); | 401 | RETURN_STATUS(nfserr); |
402 | } | 402 | } |
403 | 403 | ||
404 | static int | 404 | static __be32 |
405 | nfsd3_proc_link(struct svc_rqst *rqstp, struct nfsd3_linkargs *argp, | 405 | nfsd3_proc_link(struct svc_rqst *rqstp, struct nfsd3_linkargs *argp, |
406 | struct nfsd3_linkres *resp) | 406 | struct nfsd3_linkres *resp) |
407 | { | 407 | { |
@@ -424,7 +424,7 @@ nfsd3_proc_link(struct svc_rqst *rqstp, struct nfsd3_linkargs *argp, | |||
424 | /* | 424 | /* |
425 | * Read a portion of a directory. | 425 | * Read a portion of a directory. |
426 | */ | 426 | */ |
427 | static int | 427 | static __be32 |
428 | nfsd3_proc_readdir(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, | 428 | nfsd3_proc_readdir(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, |
429 | struct nfsd3_readdirres *resp) | 429 | struct nfsd3_readdirres *resp) |
430 | { | 430 | { |
@@ -459,7 +459,7 @@ nfsd3_proc_readdir(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, | |||
459 | * Read a portion of a directory, including file handles and attrs. | 459 | * Read a portion of a directory, including file handles and attrs. |
460 | * For now, we choose to ignore the dircount parameter. | 460 | * For now, we choose to ignore the dircount parameter. |
461 | */ | 461 | */ |
462 | static int | 462 | static __be32 |
463 | nfsd3_proc_readdirplus(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, | 463 | nfsd3_proc_readdirplus(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, |
464 | struct nfsd3_readdirres *resp) | 464 | struct nfsd3_readdirres *resp) |
465 | { | 465 | { |
@@ -517,7 +517,7 @@ nfsd3_proc_readdirplus(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, | |||
517 | /* | 517 | /* |
518 | * Get file system stats | 518 | * Get file system stats |
519 | */ | 519 | */ |
520 | static int | 520 | static __be32 |
521 | nfsd3_proc_fsstat(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, | 521 | nfsd3_proc_fsstat(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, |
522 | struct nfsd3_fsstatres *resp) | 522 | struct nfsd3_fsstatres *resp) |
523 | { | 523 | { |
@@ -534,7 +534,7 @@ nfsd3_proc_fsstat(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, | |||
534 | /* | 534 | /* |
535 | * Get file system info | 535 | * Get file system info |
536 | */ | 536 | */ |
537 | static int | 537 | static __be32 |
538 | nfsd3_proc_fsinfo(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, | 538 | nfsd3_proc_fsinfo(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, |
539 | struct nfsd3_fsinfores *resp) | 539 | struct nfsd3_fsinfores *resp) |
540 | { | 540 | { |
@@ -576,7 +576,7 @@ nfsd3_proc_fsinfo(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, | |||
576 | /* | 576 | /* |
577 | * Get pathconf info for the specified file | 577 | * Get pathconf info for the specified file |
578 | */ | 578 | */ |
579 | static int | 579 | static __be32 |
580 | nfsd3_proc_pathconf(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, | 580 | nfsd3_proc_pathconf(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, |
581 | struct nfsd3_pathconfres *resp) | 581 | struct nfsd3_pathconfres *resp) |
582 | { | 582 | { |
@@ -619,7 +619,7 @@ nfsd3_proc_pathconf(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, | |||
619 | /* | 619 | /* |
620 | * Commit a file (range) to stable storage. | 620 | * Commit a file (range) to stable storage. |
621 | */ | 621 | */ |
622 | static int | 622 | static __be32 |
623 | nfsd3_proc_commit(struct svc_rqst * rqstp, struct nfsd3_commitargs *argp, | 623 | nfsd3_proc_commit(struct svc_rqst * rqstp, struct nfsd3_commitargs *argp, |
624 | struct nfsd3_commitres *resp) | 624 | struct nfsd3_commitres *resp) |
625 | { | 625 | { |
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index d1fac6872c44..795ad6c5cb2c 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c | |||
@@ -715,7 +715,7 @@ out_kfree: | |||
715 | /* | 715 | /* |
716 | * NULL call. | 716 | * NULL call. |
717 | */ | 717 | */ |
718 | static int | 718 | static __be32 |
719 | nfsd4_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) | 719 | nfsd4_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) |
720 | { | 720 | { |
721 | return nfs_ok; | 721 | return nfs_ok; |
@@ -731,7 +731,7 @@ static inline void nfsd4_increment_op_stats(u32 opnum) | |||
731 | /* | 731 | /* |
732 | * COMPOUND call. | 732 | * COMPOUND call. |
733 | */ | 733 | */ |
734 | static int | 734 | static __be32 |
735 | nfsd4_proc_compound(struct svc_rqst *rqstp, | 735 | nfsd4_proc_compound(struct svc_rqst *rqstp, |
736 | struct nfsd4_compoundargs *args, | 736 | struct nfsd4_compoundargs *args, |
737 | struct nfsd4_compoundres *resp) | 737 | struct nfsd4_compoundres *resp) |
diff --git a/fs/nfsd/nfsproc.c b/fs/nfsd/nfsproc.c index 9ee1dab5d44a..09030afd7249 100644 --- a/fs/nfsd/nfsproc.c +++ b/fs/nfsd/nfsproc.c | |||
@@ -30,7 +30,7 @@ typedef struct svc_buf svc_buf; | |||
30 | #define NFSDDBG_FACILITY NFSDDBG_PROC | 30 | #define NFSDDBG_FACILITY NFSDDBG_PROC |
31 | 31 | ||
32 | 32 | ||
33 | static int | 33 | static __be32 |
34 | nfsd_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) | 34 | nfsd_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) |
35 | { | 35 | { |
36 | return nfs_ok; | 36 | return nfs_ok; |
@@ -56,7 +56,7 @@ nfsd_return_dirop(int err, struct nfsd_diropres *resp) | |||
56 | * Get a file's attributes | 56 | * Get a file's attributes |
57 | * N.B. After this call resp->fh needs an fh_put | 57 | * N.B. After this call resp->fh needs an fh_put |
58 | */ | 58 | */ |
59 | static int | 59 | static __be32 |
60 | nfsd_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, | 60 | nfsd_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, |
61 | struct nfsd_attrstat *resp) | 61 | struct nfsd_attrstat *resp) |
62 | { | 62 | { |
@@ -72,7 +72,7 @@ nfsd_proc_getattr(struct svc_rqst *rqstp, struct nfsd_fhandle *argp, | |||
72 | * Set a file's attributes | 72 | * Set a file's attributes |
73 | * N.B. After this call resp->fh needs an fh_put | 73 | * N.B. After this call resp->fh needs an fh_put |
74 | */ | 74 | */ |
75 | static int | 75 | static __be32 |
76 | nfsd_proc_setattr(struct svc_rqst *rqstp, struct nfsd_sattrargs *argp, | 76 | nfsd_proc_setattr(struct svc_rqst *rqstp, struct nfsd_sattrargs *argp, |
77 | struct nfsd_attrstat *resp) | 77 | struct nfsd_attrstat *resp) |
78 | { | 78 | { |
@@ -92,7 +92,7 @@ nfsd_proc_setattr(struct svc_rqst *rqstp, struct nfsd_sattrargs *argp, | |||
92 | * doesn't exist yet. | 92 | * doesn't exist yet. |
93 | * N.B. After this call resp->fh needs an fh_put | 93 | * N.B. After this call resp->fh needs an fh_put |
94 | */ | 94 | */ |
95 | static int | 95 | static __be32 |
96 | nfsd_proc_lookup(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, | 96 | nfsd_proc_lookup(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, |
97 | struct nfsd_diropres *resp) | 97 | struct nfsd_diropres *resp) |
98 | { | 98 | { |
@@ -112,7 +112,7 @@ nfsd_proc_lookup(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, | |||
112 | /* | 112 | /* |
113 | * Read a symlink. | 113 | * Read a symlink. |
114 | */ | 114 | */ |
115 | static int | 115 | static __be32 |
116 | nfsd_proc_readlink(struct svc_rqst *rqstp, struct nfsd_readlinkargs *argp, | 116 | nfsd_proc_readlink(struct svc_rqst *rqstp, struct nfsd_readlinkargs *argp, |
117 | struct nfsd_readlinkres *resp) | 117 | struct nfsd_readlinkres *resp) |
118 | { | 118 | { |
@@ -132,7 +132,7 @@ nfsd_proc_readlink(struct svc_rqst *rqstp, struct nfsd_readlinkargs *argp, | |||
132 | * Read a portion of a file. | 132 | * Read a portion of a file. |
133 | * N.B. After this call resp->fh needs an fh_put | 133 | * N.B. After this call resp->fh needs an fh_put |
134 | */ | 134 | */ |
135 | static int | 135 | static __be32 |
136 | nfsd_proc_read(struct svc_rqst *rqstp, struct nfsd_readargs *argp, | 136 | nfsd_proc_read(struct svc_rqst *rqstp, struct nfsd_readargs *argp, |
137 | struct nfsd_readres *resp) | 137 | struct nfsd_readres *resp) |
138 | { | 138 | { |
@@ -172,7 +172,7 @@ nfsd_proc_read(struct svc_rqst *rqstp, struct nfsd_readargs *argp, | |||
172 | * Write data to a file | 172 | * Write data to a file |
173 | * N.B. After this call resp->fh needs an fh_put | 173 | * N.B. After this call resp->fh needs an fh_put |
174 | */ | 174 | */ |
175 | static int | 175 | static __be32 |
176 | nfsd_proc_write(struct svc_rqst *rqstp, struct nfsd_writeargs *argp, | 176 | nfsd_proc_write(struct svc_rqst *rqstp, struct nfsd_writeargs *argp, |
177 | struct nfsd_attrstat *resp) | 177 | struct nfsd_attrstat *resp) |
178 | { | 178 | { |
@@ -197,7 +197,7 @@ nfsd_proc_write(struct svc_rqst *rqstp, struct nfsd_writeargs *argp, | |||
197 | * and the actual create() call in compliance with VFS protocols. | 197 | * and the actual create() call in compliance with VFS protocols. |
198 | * N.B. After this call _both_ argp->fh and resp->fh need an fh_put | 198 | * N.B. After this call _both_ argp->fh and resp->fh need an fh_put |
199 | */ | 199 | */ |
200 | static int | 200 | static __be32 |
201 | nfsd_proc_create(struct svc_rqst *rqstp, struct nfsd_createargs *argp, | 201 | nfsd_proc_create(struct svc_rqst *rqstp, struct nfsd_createargs *argp, |
202 | struct nfsd_diropres *resp) | 202 | struct nfsd_diropres *resp) |
203 | { | 203 | { |
@@ -348,7 +348,7 @@ done: | |||
348 | return nfsd_return_dirop(nfserr, resp); | 348 | return nfsd_return_dirop(nfserr, resp); |
349 | } | 349 | } |
350 | 350 | ||
351 | static int | 351 | static __be32 |
352 | nfsd_proc_remove(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, | 352 | nfsd_proc_remove(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, |
353 | void *resp) | 353 | void *resp) |
354 | { | 354 | { |
@@ -363,7 +363,7 @@ nfsd_proc_remove(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, | |||
363 | return nfserr; | 363 | return nfserr; |
364 | } | 364 | } |
365 | 365 | ||
366 | static int | 366 | static __be32 |
367 | nfsd_proc_rename(struct svc_rqst *rqstp, struct nfsd_renameargs *argp, | 367 | nfsd_proc_rename(struct svc_rqst *rqstp, struct nfsd_renameargs *argp, |
368 | void *resp) | 368 | void *resp) |
369 | { | 369 | { |
@@ -381,7 +381,7 @@ nfsd_proc_rename(struct svc_rqst *rqstp, struct nfsd_renameargs *argp, | |||
381 | return nfserr; | 381 | return nfserr; |
382 | } | 382 | } |
383 | 383 | ||
384 | static int | 384 | static __be32 |
385 | nfsd_proc_link(struct svc_rqst *rqstp, struct nfsd_linkargs *argp, | 385 | nfsd_proc_link(struct svc_rqst *rqstp, struct nfsd_linkargs *argp, |
386 | void *resp) | 386 | void *resp) |
387 | { | 387 | { |
@@ -401,7 +401,7 @@ nfsd_proc_link(struct svc_rqst *rqstp, struct nfsd_linkargs *argp, | |||
401 | return nfserr; | 401 | return nfserr; |
402 | } | 402 | } |
403 | 403 | ||
404 | static int | 404 | static __be32 |
405 | nfsd_proc_symlink(struct svc_rqst *rqstp, struct nfsd_symlinkargs *argp, | 405 | nfsd_proc_symlink(struct svc_rqst *rqstp, struct nfsd_symlinkargs *argp, |
406 | void *resp) | 406 | void *resp) |
407 | { | 407 | { |
@@ -430,7 +430,7 @@ nfsd_proc_symlink(struct svc_rqst *rqstp, struct nfsd_symlinkargs *argp, | |||
430 | * Make directory. This operation is not idempotent. | 430 | * Make directory. This operation is not idempotent. |
431 | * N.B. After this call resp->fh needs an fh_put | 431 | * N.B. After this call resp->fh needs an fh_put |
432 | */ | 432 | */ |
433 | static int | 433 | static __be32 |
434 | nfsd_proc_mkdir(struct svc_rqst *rqstp, struct nfsd_createargs *argp, | 434 | nfsd_proc_mkdir(struct svc_rqst *rqstp, struct nfsd_createargs *argp, |
435 | struct nfsd_diropres *resp) | 435 | struct nfsd_diropres *resp) |
436 | { | 436 | { |
@@ -454,7 +454,7 @@ nfsd_proc_mkdir(struct svc_rqst *rqstp, struct nfsd_createargs *argp, | |||
454 | /* | 454 | /* |
455 | * Remove a directory | 455 | * Remove a directory |
456 | */ | 456 | */ |
457 | static int | 457 | static __be32 |
458 | nfsd_proc_rmdir(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, | 458 | nfsd_proc_rmdir(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, |
459 | void *resp) | 459 | void *resp) |
460 | { | 460 | { |
@@ -470,7 +470,7 @@ nfsd_proc_rmdir(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, | |||
470 | /* | 470 | /* |
471 | * Read a portion of a directory. | 471 | * Read a portion of a directory. |
472 | */ | 472 | */ |
473 | static int | 473 | static __be32 |
474 | nfsd_proc_readdir(struct svc_rqst *rqstp, struct nfsd_readdirargs *argp, | 474 | nfsd_proc_readdir(struct svc_rqst *rqstp, struct nfsd_readdirargs *argp, |
475 | struct nfsd_readdirres *resp) | 475 | struct nfsd_readdirres *resp) |
476 | { | 476 | { |
@@ -509,7 +509,7 @@ nfsd_proc_readdir(struct svc_rqst *rqstp, struct nfsd_readdirargs *argp, | |||
509 | /* | 509 | /* |
510 | * Get file system info | 510 | * Get file system info |
511 | */ | 511 | */ |
512 | static int | 512 | static __be32 |
513 | nfsd_proc_statfs(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, | 513 | nfsd_proc_statfs(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, |
514 | struct nfsd_statfsres *resp) | 514 | struct nfsd_statfsres *resp) |
515 | { | 515 | { |
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 9c9a8ad92477..965d6c20086e 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h | |||
@@ -335,7 +335,7 @@ struct svc_version { | |||
335 | /* | 335 | /* |
336 | * RPC procedure info | 336 | * RPC procedure info |
337 | */ | 337 | */ |
338 | typedef int (*svc_procfunc)(struct svc_rqst *, void *argp, void *resp); | 338 | typedef __be32 (*svc_procfunc)(struct svc_rqst *, void *argp, void *resp); |
339 | struct svc_procedure { | 339 | struct svc_procedure { |
340 | svc_procfunc pc_func; /* process the request */ | 340 | svc_procfunc pc_func; /* process the request */ |
341 | kxdrproc_t pc_decode; /* XDR decode args */ | 341 | kxdrproc_t pc_decode; /* XDR decode args */ |