RDMA/uverbs: Annotate uverbs_request_next_ptr() return value as a __user pointer
authorBart Van Assche <bvanassche@acm.org>
Wed, 27 Mar 2019 23:50:46 +0000 (16:50 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 28 Mar 2019 13:22:48 +0000 (10:22 -0300)
commit2dcdebff5e84356824c800ae5217c02ef0f78b06
tree5c67e4475e63acc316e7b2c7ff9aaa1b0fc86780
parent259e66bcdff59b5d92b8f43e42237aaea2c4d457
RDMA/uverbs: Annotate uverbs_request_next_ptr() return value as a __user pointer

This patch avoids that sparse complains about a mismatch between the
returned value and the function return type.

Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Fixes: c3bea3d2dc53 ("RDMA/uverbs: Use the iterator for ib_uverbs_unmarshall_recv()")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_cmd.c