RDMA/uverbs: Get rid of the 'callback' scheme in the compat path
authorJason Gunthorpe <jgg@mellanox.com>
Sun, 25 Nov 2018 18:58:36 +0000 (20:58 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Dec 2018 17:01:58 +0000 (12:01 -0500)
commit931373a118acce816561f04dc9832b85172e65b8
treea59ecdce01cbd33533e58df699db2f13c216a723
parentc2a939fda468bb5c4144a64fd2b9cbdad323bf68
RDMA/uverbs: Get rid of the 'callback' scheme in the compat path

There is no reason for this. For response processing we simply need to
copy, truncate, and zero fill the response into whatever output buffer
was provided. Add a function uverbs_response() that does this
consistently.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_cmd.c