diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-08-20 21:08:56 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-08-22 08:58:15 -0400 |
commit | b8a8a0dd506faea934164d30bd1d6f86f8e87b1e (patch) | |
tree | 66cc0b9abca799cd79383665a75ed0df3ab0543d /fs/nfs/nfs4xdr.c | |
parent | 393faffe6f0d1cd3fb84dc591c4b220cd82efbb6 (diff) |
NFSv4: Fix an incorrect pointer declaration in decode_first_pnfs_layout_type
We always encode to __be32 format in XDR: silences a sparse warning.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Andy Adamson <andros@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r-- | fs/nfs/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index 133626318149..4593728b9d0b 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
@@ -4630,7 +4630,7 @@ static int decode_getfattr(struct xdr_stream *xdr, struct nfs_fattr *fattr, | |||
4630 | static int decode_first_pnfs_layout_type(struct xdr_stream *xdr, | 4630 | static int decode_first_pnfs_layout_type(struct xdr_stream *xdr, |
4631 | uint32_t *layouttype) | 4631 | uint32_t *layouttype) |
4632 | { | 4632 | { |
4633 | uint32_t *p; | 4633 | __be32 *p; |
4634 | int num; | 4634 | int num; |
4635 | 4635 | ||
4636 | p = xdr_inline_decode(xdr, 4); | 4636 | p = xdr_inline_decode(xdr, 4); |