sunrpc: properly type argument to kxdrdproc_t
[linux-2.6-microblaze.git] / include / linux / sunrpc / xdr.h
index 054c8cd..ed0fbf0 100644 (file)
@@ -17,6 +17,8 @@
 #include <asm/unaligned.h>
 #include <linux/scatterlist.h>
 
+struct rpc_rqst;
+
 /*
  * Buffer adjustment
  */
@@ -222,8 +224,10 @@ struct xdr_stream {
 /*
  * These are the xdr_stream style generic XDR encode and decode functions.
  */
-typedef void   (*kxdreproc_t)(void *rqstp, struct xdr_stream *xdr, void *obj);
-typedef int    (*kxdrdproc_t)(void *rqstp, struct xdr_stream *xdr, void *obj);
+typedef void   (*kxdreproc_t)(struct rpc_rqst *rqstp, struct xdr_stream *xdr,
+               const void *obj);
+typedef int    (*kxdrdproc_t)(struct rpc_rqst *rqstp, struct xdr_stream *xdr,
+               void *obj);
 
 extern void xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p);
 extern __be32 *xdr_reserve_space(struct xdr_stream *xdr, size_t nbytes);