Skip to content

Commit b8a8a0d

Browse files
Trond MyklebustTrond Myklebust
authored andcommitted
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 <[email protected]> Cc: Andy Adamson <[email protected]>
1 parent 393faff commit b8a8a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/nfs4xdr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4630,7 +4630,7 @@ static int decode_getfattr(struct xdr_stream *xdr, struct nfs_fattr *fattr,
46304630
static int decode_first_pnfs_layout_type(struct xdr_stream *xdr,
46314631
uint32_t *layouttype)
46324632
{
4633-
uint32_t *p;
4633+
__be32 *p;
46344634
int num;
46354635

46364636
p = xdr_inline_decode(xdr, 4);

0 commit comments

Comments
 (0)