diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-10-20 02:29:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-20 13:26:42 -0400 |
commit | c4d987ba841dff4b2fc768e52d1d95af83f9f157 (patch) | |
tree | a898ebcde19d2e06b9fa2053caba06a75f8b526b /fs/nfsd | |
parent | b37ad28bcaa7c486a4ff0fb6c3bdaaacd67b86ce (diff) |
[PATCH] nfsd: NFSv{2,3} trivial endianness annotations for error values
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/nfsd')
-rw-r--r-- | fs/nfsd/nfs2acl.c | 6 | ||||
-rw-r--r-- | fs/nfsd/nfs3acl.c | 4 | ||||
-rw-r--r-- | fs/nfsd/nfs3proc.c | 46 | ||||
-rw-r--r-- | fs/nfsd/nfsproc.c | 40 |
4 files changed, 51 insertions, 45 deletions
diff --git a/fs/nfsd/nfs2acl.c b/fs/nfsd/nfs2acl.c index fd5397d8c62a..e3eca0816986 100644 --- a/fs/nfsd/nfs2acl.c +++ b/fs/nfsd/nfs2acl.c | |||
@@ -35,7 +35,7 @@ static __be32 nfsacld_proc_getacl(struct svc_rqst * rqstp, | |||
35 | { | 35 | { |
36 | svc_fh *fh; | 36 | svc_fh *fh; |
37 | struct posix_acl *acl; | 37 | struct posix_acl *acl; |
38 | int nfserr = 0; | 38 | __be32 nfserr = 0; |
39 | 39 | ||
40 | dprintk("nfsd: GETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); | 40 | dprintk("nfsd: GETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); |
41 | 41 | ||
@@ -102,7 +102,7 @@ static __be32 nfsacld_proc_setacl(struct svc_rqst * rqstp, | |||
102 | struct nfsd_attrstat *resp) | 102 | struct nfsd_attrstat *resp) |
103 | { | 103 | { |
104 | svc_fh *fh; | 104 | svc_fh *fh; |
105 | int nfserr = 0; | 105 | __be32 nfserr = 0; |
106 | 106 | ||
107 | dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); | 107 | dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); |
108 | 108 | ||
@@ -143,7 +143,7 @@ static __be32 nfsacld_proc_getattr(struct svc_rqst * rqstp, | |||
143 | static __be32 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 | __be32 nfserr; |
147 | 147 | ||
148 | dprintk("nfsd: ACCESS(2acl) %s 0x%x\n", | 148 | dprintk("nfsd: ACCESS(2acl) %s 0x%x\n", |
149 | SVCFH_fmt(&argp->fh), | 149 | SVCFH_fmt(&argp->fh), |
diff --git a/fs/nfsd/nfs3acl.c b/fs/nfsd/nfs3acl.c index 78b2c83d00c5..fcad2895ddb0 100644 --- a/fs/nfsd/nfs3acl.c +++ b/fs/nfsd/nfs3acl.c | |||
@@ -33,7 +33,7 @@ static __be32 nfsd3_proc_getacl(struct svc_rqst * rqstp, | |||
33 | { | 33 | { |
34 | svc_fh *fh; | 34 | svc_fh *fh; |
35 | struct posix_acl *acl; | 35 | struct posix_acl *acl; |
36 | int nfserr = 0; | 36 | __be32 nfserr = 0; |
37 | 37 | ||
38 | fh = fh_copy(&resp->fh, &argp->fh); | 38 | fh = fh_copy(&resp->fh, &argp->fh); |
39 | if ((nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_NOP))) | 39 | if ((nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_NOP))) |
@@ -98,7 +98,7 @@ static __be32 nfsd3_proc_setacl(struct svc_rqst * rqstp, | |||
98 | struct nfsd3_attrstat *resp) | 98 | struct nfsd3_attrstat *resp) |
99 | { | 99 | { |
100 | svc_fh *fh; | 100 | svc_fh *fh; |
101 | int nfserr = 0; | 101 | __be32 nfserr = 0; |
102 | 102 | ||
103 | fh = fh_copy(&resp->fh, &argp->fh); | 103 | fh = fh_copy(&resp->fh, &argp->fh); |
104 | nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_SATTR); | 104 | nfserr = fh_verify(rqstp, &resp->fh, 0, MAY_SATTR); |
diff --git a/fs/nfsd/nfs3proc.c b/fs/nfsd/nfs3proc.c index a12663fdfe16..64db601c2bd2 100644 --- a/fs/nfsd/nfs3proc.c +++ b/fs/nfsd/nfs3proc.c | |||
@@ -56,7 +56,8 @@ 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 | { |
59 | int err, nfserr; | 59 | int err; |
60 | __be32 nfserr; | ||
60 | 61 | ||
61 | dprintk("nfsd: GETATTR(3) %s\n", | 62 | dprintk("nfsd: GETATTR(3) %s\n", |
62 | SVCFH_fmt(&argp->fh)); | 63 | SVCFH_fmt(&argp->fh)); |
@@ -80,7 +81,7 @@ static __be32 | |||
80 | nfsd3_proc_setattr(struct svc_rqst *rqstp, struct nfsd3_sattrargs *argp, | 81 | nfsd3_proc_setattr(struct svc_rqst *rqstp, struct nfsd3_sattrargs *argp, |
81 | struct nfsd3_attrstat *resp) | 82 | struct nfsd3_attrstat *resp) |
82 | { | 83 | { |
83 | int nfserr; | 84 | __be32 nfserr; |
84 | 85 | ||
85 | dprintk("nfsd: SETATTR(3) %s\n", | 86 | dprintk("nfsd: SETATTR(3) %s\n", |
86 | SVCFH_fmt(&argp->fh)); | 87 | SVCFH_fmt(&argp->fh)); |
@@ -98,7 +99,7 @@ static __be32 | |||
98 | nfsd3_proc_lookup(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, | 99 | nfsd3_proc_lookup(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, |
99 | struct nfsd3_diropres *resp) | 100 | struct nfsd3_diropres *resp) |
100 | { | 101 | { |
101 | int nfserr; | 102 | __be32 nfserr; |
102 | 103 | ||
103 | dprintk("nfsd: LOOKUP(3) %s %.*s\n", | 104 | dprintk("nfsd: LOOKUP(3) %s %.*s\n", |
104 | SVCFH_fmt(&argp->fh), | 105 | SVCFH_fmt(&argp->fh), |
@@ -122,7 +123,7 @@ static __be32 | |||
122 | nfsd3_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, | 123 | nfsd3_proc_access(struct svc_rqst *rqstp, struct nfsd3_accessargs *argp, |
123 | struct nfsd3_accessres *resp) | 124 | struct nfsd3_accessres *resp) |
124 | { | 125 | { |
125 | int nfserr; | 126 | __be32 nfserr; |
126 | 127 | ||
127 | dprintk("nfsd: ACCESS(3) %s 0x%x\n", | 128 | dprintk("nfsd: ACCESS(3) %s 0x%x\n", |
128 | SVCFH_fmt(&argp->fh), | 129 | SVCFH_fmt(&argp->fh), |
@@ -141,7 +142,7 @@ static __be32 | |||
141 | nfsd3_proc_readlink(struct svc_rqst *rqstp, struct nfsd3_readlinkargs *argp, | 142 | nfsd3_proc_readlink(struct svc_rqst *rqstp, struct nfsd3_readlinkargs *argp, |
142 | struct nfsd3_readlinkres *resp) | 143 | struct nfsd3_readlinkres *resp) |
143 | { | 144 | { |
144 | int nfserr; | 145 | __be32 nfserr; |
145 | 146 | ||
146 | dprintk("nfsd: READLINK(3) %s\n", SVCFH_fmt(&argp->fh)); | 147 | dprintk("nfsd: READLINK(3) %s\n", SVCFH_fmt(&argp->fh)); |
147 | 148 | ||
@@ -159,7 +160,7 @@ static __be32 | |||
159 | nfsd3_proc_read(struct svc_rqst *rqstp, struct nfsd3_readargs *argp, | 160 | nfsd3_proc_read(struct svc_rqst *rqstp, struct nfsd3_readargs *argp, |
160 | struct nfsd3_readres *resp) | 161 | struct nfsd3_readres *resp) |
161 | { | 162 | { |
162 | int nfserr; | 163 | __be32 nfserr; |
163 | u32 max_blocksize = svc_max_payload(rqstp); | 164 | u32 max_blocksize = svc_max_payload(rqstp); |
164 | 165 | ||
165 | dprintk("nfsd: READ(3) %s %lu bytes at %lu\n", | 166 | dprintk("nfsd: READ(3) %s %lu bytes at %lu\n", |
@@ -199,7 +200,7 @@ static __be32 | |||
199 | nfsd3_proc_write(struct svc_rqst *rqstp, struct nfsd3_writeargs *argp, | 200 | nfsd3_proc_write(struct svc_rqst *rqstp, struct nfsd3_writeargs *argp, |
200 | struct nfsd3_writeres *resp) | 201 | struct nfsd3_writeres *resp) |
201 | { | 202 | { |
202 | int nfserr; | 203 | __be32 nfserr; |
203 | 204 | ||
204 | dprintk("nfsd: WRITE(3) %s %d bytes at %ld%s\n", | 205 | dprintk("nfsd: WRITE(3) %s %d bytes at %ld%s\n", |
205 | SVCFH_fmt(&argp->fh), | 206 | SVCFH_fmt(&argp->fh), |
@@ -229,7 +230,7 @@ nfsd3_proc_create(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, | |||
229 | { | 230 | { |
230 | svc_fh *dirfhp, *newfhp = NULL; | 231 | svc_fh *dirfhp, *newfhp = NULL; |
231 | struct iattr *attr; | 232 | struct iattr *attr; |
232 | u32 nfserr; | 233 | __be32 nfserr; |
233 | 234 | ||
234 | dprintk("nfsd: CREATE(3) %s %.*s\n", | 235 | dprintk("nfsd: CREATE(3) %s %.*s\n", |
235 | SVCFH_fmt(&argp->fh), | 236 | SVCFH_fmt(&argp->fh), |
@@ -269,7 +270,7 @@ static __be32 | |||
269 | nfsd3_proc_mkdir(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, | 270 | nfsd3_proc_mkdir(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, |
270 | struct nfsd3_diropres *resp) | 271 | struct nfsd3_diropres *resp) |
271 | { | 272 | { |
272 | int nfserr; | 273 | __be32 nfserr; |
273 | 274 | ||
274 | dprintk("nfsd: MKDIR(3) %s %.*s\n", | 275 | dprintk("nfsd: MKDIR(3) %s %.*s\n", |
275 | SVCFH_fmt(&argp->fh), | 276 | SVCFH_fmt(&argp->fh), |
@@ -289,7 +290,7 @@ static __be32 | |||
289 | nfsd3_proc_symlink(struct svc_rqst *rqstp, struct nfsd3_symlinkargs *argp, | 290 | nfsd3_proc_symlink(struct svc_rqst *rqstp, struct nfsd3_symlinkargs *argp, |
290 | struct nfsd3_diropres *resp) | 291 | struct nfsd3_diropres *resp) |
291 | { | 292 | { |
292 | int nfserr; | 293 | __be32 nfserr; |
293 | 294 | ||
294 | dprintk("nfsd: SYMLINK(3) %s %.*s -> %.*s\n", | 295 | dprintk("nfsd: SYMLINK(3) %s %.*s -> %.*s\n", |
295 | SVCFH_fmt(&argp->ffh), | 296 | SVCFH_fmt(&argp->ffh), |
@@ -311,7 +312,8 @@ static __be32 | |||
311 | nfsd3_proc_mknod(struct svc_rqst *rqstp, struct nfsd3_mknodargs *argp, | 312 | nfsd3_proc_mknod(struct svc_rqst *rqstp, struct nfsd3_mknodargs *argp, |
312 | struct nfsd3_diropres *resp) | 313 | struct nfsd3_diropres *resp) |
313 | { | 314 | { |
314 | int nfserr, type; | 315 | __be32 nfserr; |
316 | int type; | ||
315 | dev_t rdev = 0; | 317 | dev_t rdev = 0; |
316 | 318 | ||
317 | dprintk("nfsd: MKNOD(3) %s %.*s\n", | 319 | dprintk("nfsd: MKNOD(3) %s %.*s\n", |
@@ -347,7 +349,7 @@ static __be32 | |||
347 | nfsd3_proc_remove(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, | 349 | nfsd3_proc_remove(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, |
348 | struct nfsd3_attrstat *resp) | 350 | struct nfsd3_attrstat *resp) |
349 | { | 351 | { |
350 | int nfserr; | 352 | __be32 nfserr; |
351 | 353 | ||
352 | dprintk("nfsd: REMOVE(3) %s %.*s\n", | 354 | dprintk("nfsd: REMOVE(3) %s %.*s\n", |
353 | SVCFH_fmt(&argp->fh), | 355 | SVCFH_fmt(&argp->fh), |
@@ -367,7 +369,7 @@ static __be32 | |||
367 | nfsd3_proc_rmdir(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, | 369 | nfsd3_proc_rmdir(struct svc_rqst *rqstp, struct nfsd3_diropargs *argp, |
368 | struct nfsd3_attrstat *resp) | 370 | struct nfsd3_attrstat *resp) |
369 | { | 371 | { |
370 | int nfserr; | 372 | __be32 nfserr; |
371 | 373 | ||
372 | dprintk("nfsd: RMDIR(3) %s %.*s\n", | 374 | dprintk("nfsd: RMDIR(3) %s %.*s\n", |
373 | SVCFH_fmt(&argp->fh), | 375 | SVCFH_fmt(&argp->fh), |
@@ -383,7 +385,7 @@ static __be32 | |||
383 | nfsd3_proc_rename(struct svc_rqst *rqstp, struct nfsd3_renameargs *argp, | 385 | nfsd3_proc_rename(struct svc_rqst *rqstp, struct nfsd3_renameargs *argp, |
384 | struct nfsd3_renameres *resp) | 386 | struct nfsd3_renameres *resp) |
385 | { | 387 | { |
386 | int nfserr; | 388 | __be32 nfserr; |
387 | 389 | ||
388 | dprintk("nfsd: RENAME(3) %s %.*s ->\n", | 390 | dprintk("nfsd: RENAME(3) %s %.*s ->\n", |
389 | SVCFH_fmt(&argp->ffh), | 391 | SVCFH_fmt(&argp->ffh), |
@@ -405,7 +407,7 @@ static __be32 | |||
405 | nfsd3_proc_link(struct svc_rqst *rqstp, struct nfsd3_linkargs *argp, | 407 | nfsd3_proc_link(struct svc_rqst *rqstp, struct nfsd3_linkargs *argp, |
406 | struct nfsd3_linkres *resp) | 408 | struct nfsd3_linkres *resp) |
407 | { | 409 | { |
408 | int nfserr; | 410 | __be32 nfserr; |
409 | 411 | ||
410 | dprintk("nfsd: LINK(3) %s ->\n", | 412 | dprintk("nfsd: LINK(3) %s ->\n", |
411 | SVCFH_fmt(&argp->ffh)); | 413 | SVCFH_fmt(&argp->ffh)); |
@@ -428,7 +430,8 @@ static __be32 | |||
428 | nfsd3_proc_readdir(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, | 430 | nfsd3_proc_readdir(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, |
429 | struct nfsd3_readdirres *resp) | 431 | struct nfsd3_readdirres *resp) |
430 | { | 432 | { |
431 | int nfserr, count; | 433 | __be32 nfserr; |
434 | int count; | ||
432 | 435 | ||
433 | dprintk("nfsd: READDIR(3) %s %d bytes at %d\n", | 436 | dprintk("nfsd: READDIR(3) %s %d bytes at %d\n", |
434 | SVCFH_fmt(&argp->fh), | 437 | SVCFH_fmt(&argp->fh), |
@@ -463,7 +466,8 @@ static __be32 | |||
463 | nfsd3_proc_readdirplus(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, | 466 | nfsd3_proc_readdirplus(struct svc_rqst *rqstp, struct nfsd3_readdirargs *argp, |
464 | struct nfsd3_readdirres *resp) | 467 | struct nfsd3_readdirres *resp) |
465 | { | 468 | { |
466 | int nfserr, count = 0; | 469 | __be32 nfserr; |
470 | int count = 0; | ||
467 | loff_t offset; | 471 | loff_t offset; |
468 | int i; | 472 | int i; |
469 | caddr_t page_addr = NULL; | 473 | caddr_t page_addr = NULL; |
@@ -521,7 +525,7 @@ static __be32 | |||
521 | nfsd3_proc_fsstat(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, | 525 | nfsd3_proc_fsstat(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, |
522 | struct nfsd3_fsstatres *resp) | 526 | struct nfsd3_fsstatres *resp) |
523 | { | 527 | { |
524 | int nfserr; | 528 | __be32 nfserr; |
525 | 529 | ||
526 | dprintk("nfsd: FSSTAT(3) %s\n", | 530 | dprintk("nfsd: FSSTAT(3) %s\n", |
527 | SVCFH_fmt(&argp->fh)); | 531 | SVCFH_fmt(&argp->fh)); |
@@ -538,7 +542,7 @@ static __be32 | |||
538 | nfsd3_proc_fsinfo(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, | 542 | nfsd3_proc_fsinfo(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, |
539 | struct nfsd3_fsinfores *resp) | 543 | struct nfsd3_fsinfores *resp) |
540 | { | 544 | { |
541 | int nfserr; | 545 | __be32 nfserr; |
542 | u32 max_blocksize = svc_max_payload(rqstp); | 546 | u32 max_blocksize = svc_max_payload(rqstp); |
543 | 547 | ||
544 | dprintk("nfsd: FSINFO(3) %s\n", | 548 | dprintk("nfsd: FSINFO(3) %s\n", |
@@ -580,7 +584,7 @@ static __be32 | |||
580 | nfsd3_proc_pathconf(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, | 584 | nfsd3_proc_pathconf(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, |
581 | struct nfsd3_pathconfres *resp) | 585 | struct nfsd3_pathconfres *resp) |
582 | { | 586 | { |
583 | int nfserr; | 587 | __be32 nfserr; |
584 | 588 | ||
585 | dprintk("nfsd: PATHCONF(3) %s\n", | 589 | dprintk("nfsd: PATHCONF(3) %s\n", |
586 | SVCFH_fmt(&argp->fh)); | 590 | SVCFH_fmt(&argp->fh)); |
@@ -623,7 +627,7 @@ static __be32 | |||
623 | nfsd3_proc_commit(struct svc_rqst * rqstp, struct nfsd3_commitargs *argp, | 627 | nfsd3_proc_commit(struct svc_rqst * rqstp, struct nfsd3_commitargs *argp, |
624 | struct nfsd3_commitres *resp) | 628 | struct nfsd3_commitres *resp) |
625 | { | 629 | { |
626 | int nfserr; | 630 | __be32 nfserr; |
627 | 631 | ||
628 | dprintk("nfsd: COMMIT(3) %s %u@%Lu\n", | 632 | dprintk("nfsd: COMMIT(3) %s %u@%Lu\n", |
629 | SVCFH_fmt(&argp->fh), | 633 | SVCFH_fmt(&argp->fh), |
diff --git a/fs/nfsd/nfsproc.c b/fs/nfsd/nfsproc.c index 03ab6822291f..ec983b777680 100644 --- a/fs/nfsd/nfsproc.c +++ b/fs/nfsd/nfsproc.c | |||
@@ -36,16 +36,16 @@ nfsd_proc_null(struct svc_rqst *rqstp, void *argp, void *resp) | |||
36 | return nfs_ok; | 36 | return nfs_ok; |
37 | } | 37 | } |
38 | 38 | ||
39 | static int | 39 | static __be32 |
40 | nfsd_return_attrs(int err, struct nfsd_attrstat *resp) | 40 | nfsd_return_attrs(__be32 err, struct nfsd_attrstat *resp) |
41 | { | 41 | { |
42 | if (err) return err; | 42 | if (err) return err; |
43 | return nfserrno(vfs_getattr(resp->fh.fh_export->ex_mnt, | 43 | return nfserrno(vfs_getattr(resp->fh.fh_export->ex_mnt, |
44 | resp->fh.fh_dentry, | 44 | resp->fh.fh_dentry, |
45 | &resp->stat)); | 45 | &resp->stat)); |
46 | } | 46 | } |
47 | static int | 47 | static __be32 |
48 | nfsd_return_dirop(int err, struct nfsd_diropres *resp) | 48 | nfsd_return_dirop(__be32 err, struct nfsd_diropres *resp) |
49 | { | 49 | { |
50 | if (err) return err; | 50 | if (err) return err; |
51 | return nfserrno(vfs_getattr(resp->fh.fh_export->ex_mnt, | 51 | return nfserrno(vfs_getattr(resp->fh.fh_export->ex_mnt, |
@@ -60,7 +60,7 @@ 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 | { |
63 | int nfserr; | 63 | __be32 nfserr; |
64 | dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); | 64 | dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); |
65 | 65 | ||
66 | fh_copy(&resp->fh, &argp->fh); | 66 | fh_copy(&resp->fh, &argp->fh); |
@@ -76,7 +76,7 @@ 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 | { |
79 | int nfserr; | 79 | __be32 nfserr; |
80 | dprintk("nfsd: SETATTR %s, valid=%x, size=%ld\n", | 80 | dprintk("nfsd: SETATTR %s, valid=%x, size=%ld\n", |
81 | SVCFH_fmt(&argp->fh), | 81 | SVCFH_fmt(&argp->fh), |
82 | argp->attrs.ia_valid, (long) argp->attrs.ia_size); | 82 | argp->attrs.ia_valid, (long) argp->attrs.ia_size); |
@@ -96,7 +96,7 @@ 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 | { |
99 | int nfserr; | 99 | __be32 nfserr; |
100 | 100 | ||
101 | dprintk("nfsd: LOOKUP %s %.*s\n", | 101 | dprintk("nfsd: LOOKUP %s %.*s\n", |
102 | SVCFH_fmt(&argp->fh), argp->len, argp->name); | 102 | SVCFH_fmt(&argp->fh), argp->len, argp->name); |
@@ -116,7 +116,7 @@ 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 | { |
119 | int nfserr; | 119 | __be32 nfserr; |
120 | 120 | ||
121 | dprintk("nfsd: READLINK %s\n", SVCFH_fmt(&argp->fh)); | 121 | dprintk("nfsd: READLINK %s\n", SVCFH_fmt(&argp->fh)); |
122 | 122 | ||
@@ -136,7 +136,7 @@ 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 | { |
139 | int nfserr; | 139 | __be32 nfserr; |
140 | 140 | ||
141 | dprintk("nfsd: READ %s %d bytes at %d\n", | 141 | dprintk("nfsd: READ %s %d bytes at %d\n", |
142 | SVCFH_fmt(&argp->fh), | 142 | SVCFH_fmt(&argp->fh), |
@@ -176,7 +176,7 @@ 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 | { |
179 | int nfserr; | 179 | __be32 nfserr; |
180 | int stable = 1; | 180 | int stable = 1; |
181 | 181 | ||
182 | dprintk("nfsd: WRITE %s %d bytes at %d\n", | 182 | dprintk("nfsd: WRITE %s %d bytes at %d\n", |
@@ -206,7 +206,8 @@ nfsd_proc_create(struct svc_rqst *rqstp, struct nfsd_createargs *argp, | |||
206 | struct iattr *attr = &argp->attrs; | 206 | struct iattr *attr = &argp->attrs; |
207 | struct inode *inode; | 207 | struct inode *inode; |
208 | struct dentry *dchild; | 208 | struct dentry *dchild; |
209 | int nfserr, type, mode; | 209 | int type, mode; |
210 | __be32 nfserr; | ||
210 | dev_t rdev = 0, wanted = new_decode_dev(attr->ia_size); | 211 | dev_t rdev = 0, wanted = new_decode_dev(attr->ia_size); |
211 | 212 | ||
212 | dprintk("nfsd: CREATE %s %.*s\n", | 213 | dprintk("nfsd: CREATE %s %.*s\n", |
@@ -352,7 +353,7 @@ static __be32 | |||
352 | nfsd_proc_remove(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, | 353 | nfsd_proc_remove(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, |
353 | void *resp) | 354 | void *resp) |
354 | { | 355 | { |
355 | int nfserr; | 356 | __be32 nfserr; |
356 | 357 | ||
357 | dprintk("nfsd: REMOVE %s %.*s\n", SVCFH_fmt(&argp->fh), | 358 | dprintk("nfsd: REMOVE %s %.*s\n", SVCFH_fmt(&argp->fh), |
358 | argp->len, argp->name); | 359 | argp->len, argp->name); |
@@ -367,7 +368,7 @@ static __be32 | |||
367 | nfsd_proc_rename(struct svc_rqst *rqstp, struct nfsd_renameargs *argp, | 368 | nfsd_proc_rename(struct svc_rqst *rqstp, struct nfsd_renameargs *argp, |
368 | void *resp) | 369 | void *resp) |
369 | { | 370 | { |
370 | int nfserr; | 371 | __be32 nfserr; |
371 | 372 | ||
372 | dprintk("nfsd: RENAME %s %.*s -> \n", | 373 | dprintk("nfsd: RENAME %s %.*s -> \n", |
373 | SVCFH_fmt(&argp->ffh), argp->flen, argp->fname); | 374 | SVCFH_fmt(&argp->ffh), argp->flen, argp->fname); |
@@ -385,7 +386,7 @@ static __be32 | |||
385 | nfsd_proc_link(struct svc_rqst *rqstp, struct nfsd_linkargs *argp, | 386 | nfsd_proc_link(struct svc_rqst *rqstp, struct nfsd_linkargs *argp, |
386 | void *resp) | 387 | void *resp) |
387 | { | 388 | { |
388 | int nfserr; | 389 | __be32 nfserr; |
389 | 390 | ||
390 | dprintk("nfsd: LINK %s ->\n", | 391 | dprintk("nfsd: LINK %s ->\n", |
391 | SVCFH_fmt(&argp->ffh)); | 392 | SVCFH_fmt(&argp->ffh)); |
@@ -406,7 +407,7 @@ nfsd_proc_symlink(struct svc_rqst *rqstp, struct nfsd_symlinkargs *argp, | |||
406 | void *resp) | 407 | void *resp) |
407 | { | 408 | { |
408 | struct svc_fh newfh; | 409 | struct svc_fh newfh; |
409 | int nfserr; | 410 | __be32 nfserr; |
410 | 411 | ||
411 | dprintk("nfsd: SYMLINK %s %.*s -> %.*s\n", | 412 | dprintk("nfsd: SYMLINK %s %.*s -> %.*s\n", |
412 | SVCFH_fmt(&argp->ffh), argp->flen, argp->fname, | 413 | SVCFH_fmt(&argp->ffh), argp->flen, argp->fname, |
@@ -434,7 +435,7 @@ static __be32 | |||
434 | nfsd_proc_mkdir(struct svc_rqst *rqstp, struct nfsd_createargs *argp, | 435 | nfsd_proc_mkdir(struct svc_rqst *rqstp, struct nfsd_createargs *argp, |
435 | struct nfsd_diropres *resp) | 436 | struct nfsd_diropres *resp) |
436 | { | 437 | { |
437 | int nfserr; | 438 | __be32 nfserr; |
438 | 439 | ||
439 | dprintk("nfsd: MKDIR %s %.*s\n", SVCFH_fmt(&argp->fh), argp->len, argp->name); | 440 | dprintk("nfsd: MKDIR %s %.*s\n", SVCFH_fmt(&argp->fh), argp->len, argp->name); |
440 | 441 | ||
@@ -458,7 +459,7 @@ static __be32 | |||
458 | nfsd_proc_rmdir(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, | 459 | nfsd_proc_rmdir(struct svc_rqst *rqstp, struct nfsd_diropargs *argp, |
459 | void *resp) | 460 | void *resp) |
460 | { | 461 | { |
461 | int nfserr; | 462 | __be32 nfserr; |
462 | 463 | ||
463 | dprintk("nfsd: RMDIR %s %.*s\n", SVCFH_fmt(&argp->fh), argp->len, argp->name); | 464 | dprintk("nfsd: RMDIR %s %.*s\n", SVCFH_fmt(&argp->fh), argp->len, argp->name); |
464 | 465 | ||
@@ -474,7 +475,8 @@ static __be32 | |||
474 | nfsd_proc_readdir(struct svc_rqst *rqstp, struct nfsd_readdirargs *argp, | 475 | nfsd_proc_readdir(struct svc_rqst *rqstp, struct nfsd_readdirargs *argp, |
475 | struct nfsd_readdirres *resp) | 476 | struct nfsd_readdirres *resp) |
476 | { | 477 | { |
477 | int nfserr, count; | 478 | int count; |
479 | __be32 nfserr; | ||
478 | loff_t offset; | 480 | loff_t offset; |
479 | 481 | ||
480 | dprintk("nfsd: READDIR %s %d bytes at %d\n", | 482 | dprintk("nfsd: READDIR %s %d bytes at %d\n", |
@@ -513,7 +515,7 @@ static __be32 | |||
513 | nfsd_proc_statfs(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, | 515 | nfsd_proc_statfs(struct svc_rqst * rqstp, struct nfsd_fhandle *argp, |
514 | struct nfsd_statfsres *resp) | 516 | struct nfsd_statfsres *resp) |
515 | { | 517 | { |
516 | int nfserr; | 518 | __be32 nfserr; |
517 | 519 | ||
518 | dprintk("nfsd: STATFS %s\n", SVCFH_fmt(&argp->fh)); | 520 | dprintk("nfsd: STATFS %s\n", SVCFH_fmt(&argp->fh)); |
519 | 521 | ||