]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd0ff589d533f168f255574f5ced6327ec9cd4faa
tree5c2f1156678759d790377f652cbb33cc2fe8149f
parentc00c1dffb96432312c6b6c9a5ef7aa88295a260b
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: 6a2d94b15928 ("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