|
@@ -490,8 +490,9 @@ static void nsm_xdr_enc_unmon(struct rpc_rqst *req, struct xdr_stream *xdr,
|
|
|
|
|
|
static int nsm_xdr_dec_stat_res(struct rpc_rqst *rqstp,
|
|
|
struct xdr_stream *xdr,
|
|
|
- struct nsm_res *resp)
|
|
|
+ void *data)
|
|
|
{
|
|
|
+ struct nsm_res *resp = data;
|
|
|
__be32 *p;
|
|
|
|
|
|
p = xdr_inline_decode(xdr, 4 + 4);
|
|
@@ -507,8 +508,9 @@ static int nsm_xdr_dec_stat_res(struct rpc_rqst *rqstp,
|
|
|
|
|
|
static int nsm_xdr_dec_stat(struct rpc_rqst *rqstp,
|
|
|
struct xdr_stream *xdr,
|
|
|
- struct nsm_res *resp)
|
|
|
+ void *data)
|
|
|
{
|
|
|
+ struct nsm_res *resp = data;
|
|
|
__be32 *p;
|
|
|
|
|
|
p = xdr_inline_decode(xdr, 4);
|
|
@@ -533,7 +535,7 @@ static struct rpc_procinfo nsm_procedures[] = {
|
|
|
[NSMPROC_MON] = {
|
|
|
.p_proc = NSMPROC_MON,
|
|
|
.p_encode = nsm_xdr_enc_mon,
|
|
|
- .p_decode = (kxdrdproc_t)nsm_xdr_dec_stat_res,
|
|
|
+ .p_decode = nsm_xdr_dec_stat_res,
|
|
|
.p_arglen = SM_mon_sz,
|
|
|
.p_replen = SM_monres_sz,
|
|
|
.p_statidx = NSMPROC_MON,
|
|
@@ -542,7 +544,7 @@ static struct rpc_procinfo nsm_procedures[] = {
|
|
|
[NSMPROC_UNMON] = {
|
|
|
.p_proc = NSMPROC_UNMON,
|
|
|
.p_encode = nsm_xdr_enc_unmon,
|
|
|
- .p_decode = (kxdrdproc_t)nsm_xdr_dec_stat,
|
|
|
+ .p_decode = nsm_xdr_dec_stat,
|
|
|
.p_arglen = SM_mon_id_sz,
|
|
|
.p_replen = SM_unmonres_sz,
|
|
|
.p_statidx = NSMPROC_UNMON,
|