sunrpc/auth_gss: fix decoder callback prototypes
Declare the p_decode callbacks with the proper prototype instead of casting to kxdrdproc_t and losing all type safety. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jeff Layton <jlayton@redhat.com> Acked-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
parent
555966beff
commit
c56c620b3e
|
@ -56,7 +56,7 @@ enum {
|
||||||
[GSSX_##proc] = { \
|
[GSSX_##proc] = { \
|
||||||
.p_proc = GSSX_##proc, \
|
.p_proc = GSSX_##proc, \
|
||||||
.p_encode = gssx_enc_##name, \
|
.p_encode = gssx_enc_##name, \
|
||||||
.p_decode = (kxdrdproc_t)gssx_dec_##name, \
|
.p_decode = gssx_dec_##name, \
|
||||||
.p_arglen = GSSX_ARG_##name##_sz, \
|
.p_arglen = GSSX_ARG_##name##_sz, \
|
||||||
.p_replen = GSSX_RES_##name##_sz, \
|
.p_replen = GSSX_RES_##name##_sz, \
|
||||||
.p_statidx = GSSX_##proc, \
|
.p_statidx = GSSX_##proc, \
|
||||||
|
|
|
@ -790,8 +790,9 @@ void gssx_enc_accept_sec_context(struct rpc_rqst *req,
|
||||||
|
|
||||||
int gssx_dec_accept_sec_context(struct rpc_rqst *rqstp,
|
int gssx_dec_accept_sec_context(struct rpc_rqst *rqstp,
|
||||||
struct xdr_stream *xdr,
|
struct xdr_stream *xdr,
|
||||||
struct gssx_res_accept_sec_context *res)
|
void *data)
|
||||||
{
|
{
|
||||||
|
struct gssx_res_accept_sec_context *res = data;
|
||||||
u32 value_follows;
|
u32 value_follows;
|
||||||
int err;
|
int err;
|
||||||
struct page *scratch;
|
struct page *scratch;
|
||||||
|
|
|
@ -182,7 +182,7 @@ void gssx_enc_accept_sec_context(struct rpc_rqst *req,
|
||||||
const void *data);
|
const void *data);
|
||||||
int gssx_dec_accept_sec_context(struct rpc_rqst *rqstp,
|
int gssx_dec_accept_sec_context(struct rpc_rqst *rqstp,
|
||||||
struct xdr_stream *xdr,
|
struct xdr_stream *xdr,
|
||||||
struct gssx_res_accept_sec_context *res);
|
void *data);
|
||||||
#define gssx_enc_release_handle NULL
|
#define gssx_enc_release_handle NULL
|
||||||
#define gssx_dec_release_handle NULL
|
#define gssx_dec_release_handle NULL
|
||||||
#define gssx_enc_get_mic NULL
|
#define gssx_enc_get_mic NULL
|
||||||
|
|
Loading…
Reference in New Issue