diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2021-10-13 17:41:06 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2021-10-13 18:34:49 +0300 |
commit | fda494411485aff91768842c532f90fb8eb54943 (patch) | |
tree | 3104f1b5e3a4360d8163ea80796bb9acaeee9f9a /fs/nfsd/nfsd.h | |
parent | 3b0ebb255fdc49a3d340846deebf045ef58ec744 (diff) | |
download | linux-fda494411485aff91768842c532f90fb8eb54943.tar.xz |
SUNRPC: Replace the "__be32 *p" parameter to .pc_encode
The passed-in value of the "__be32 *p" parameter is now unused in
every server-side XDR encoder, and can be removed.
Note also that there is a line in each encoder that sets up a local
pointer to a struct xdr_stream. Passing that pointer from the
dispatcher instead saves one line per encoder function.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfsd.h')
-rw-r--r-- | fs/nfsd/nfsd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfsd.h b/fs/nfsd/nfsd.h index bfcddd4c7534..345f8247d5da 100644 --- a/fs/nfsd/nfsd.h +++ b/fs/nfsd/nfsd.h @@ -80,7 +80,8 @@ struct nfsd_voidargs { }; struct nfsd_voidres { }; bool nfssvc_decode_voidarg(struct svc_rqst *rqstp, struct xdr_stream *xdr); -int nfssvc_encode_voidres(struct svc_rqst *rqstp, __be32 *p); +int nfssvc_encode_voidres(struct svc_rqst *rqstp, + struct xdr_stream *xdr); /* * Function prototypes. |