diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-10-20 02:28:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-20 13:26:40 -0400 |
commit | 7111c66e4e70588c9602035a4996c9cdc2087d2d (patch) | |
tree | 1fbd19547470c9d776c6e34a547eb181b5d4fe5f /fs/lockd | |
parent | cc45f0175088e000ac7493e5e3f05579b6f7d240 (diff) |
[PATCH] fix svc_procfunc declaration
svc_procfunc instances return __be32, not int
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Acked-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/lockd')
-rw-r--r-- | fs/lockd/svc4proc.c | 40 | ||||
-rw-r--r-- | fs/lockd/svcproc.c | 40 |
2 files changed, 40 insertions, 40 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 | { |