Commit 7956521a authored by Chuck Lever's avatar Chuck Lever Committed by J. Bruce Fields

lockd: Update the NLMv4 void arguments decoder to use struct xdr_stream

Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 529ca3a1
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
#include <linux/sunrpc/stats.h> #include <linux/sunrpc/stats.h>
#include <linux/lockd/lockd.h> #include <linux/lockd/lockd.h>
#include "svcxdr.h"
#define NLMDBG_FACILITY NLMDBG_XDR #define NLMDBG_FACILITY NLMDBG_XDR
static inline loff_t static inline loff_t
...@@ -175,8 +177,15 @@ nlm4_encode_testres(__be32 *p, struct nlm_res *resp) ...@@ -175,8 +177,15 @@ nlm4_encode_testres(__be32 *p, struct nlm_res *resp)
/* /*
* First, the server side XDR functions * Decode Call arguments
*/ */
int
nlm4svc_decode_void(struct svc_rqst *rqstp, __be32 *p)
{
return 1;
}
int int
nlm4svc_decode_testargs(struct svc_rqst *rqstp, __be32 *p) nlm4svc_decode_testargs(struct svc_rqst *rqstp, __be32 *p)
{ {
...@@ -336,12 +345,6 @@ nlm4svc_decode_res(struct svc_rqst *rqstp, __be32 *p) ...@@ -336,12 +345,6 @@ nlm4svc_decode_res(struct svc_rqst *rqstp, __be32 *p)
return xdr_argsize_check(rqstp, p); return xdr_argsize_check(rqstp, p);
} }
int
nlm4svc_decode_void(struct svc_rqst *rqstp, __be32 *p)
{
return xdr_argsize_check(rqstp, p);
}
int int
nlm4svc_encode_void(struct svc_rqst *rqstp, __be32 *p) nlm4svc_encode_void(struct svc_rqst *rqstp, __be32 *p)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment