OSDN Git Service

RDMA/uverbs: Add a __user annotation to a pointer
authorBart Van Assche <bvanassche@acm.org>
Wed, 27 Mar 2019 23:50:45 +0000 (16:50 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 28 Mar 2019 13:22:48 +0000 (10:22 -0300)
commit259e66bcdff59b5d92b8f43e42237aaea2c4d457
tree5c2f1156678759d790377f652cbb33cc2fe8149f
parent08304d714638dff08bf001e92ce56411e2e902c7
RDMA/uverbs: Add a __user annotation to a pointer

This patch avoids that sparse and smatch report the following:

  warning: cast removes address space of expression

Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Fixes: 3a6532c9af1a ("RDMA/uverbs: Use uverbs_attr_bundle to pass udata for write")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_main.c