diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2020-01-08 19:22:00 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-01-13 16:20:15 -0400 |
commit | 9fbe334c6a67c3c09f187e4b9b0e6eaf0ad31429 (patch) | |
tree | 7c144e0ef6b1340bc276eb8659fa375bdc031837 /drivers/infiniband/core/uverbs_main.c | |
parent | RDMA/core: Do not erase the type of ib_qp.uobject (diff) | |
download | linux-dev-9fbe334c6a67c3c09f187e4b9b0e6eaf0ad31429.tar.xz linux-dev-9fbe334c6a67c3c09f187e4b9b0e6eaf0ad31429.zip |
RDMA/core: Do not erase the type of ib_srq.uobject
This is a struct ib_usrq_object pointer, instead of using container_of()
all over the place just store it with its actual type.
Link: https://lore.kernel.org/r/1578504126-9400-9-git-send-email-yishaih@mellanox.com
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/infiniband/core/uverbs_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c index 12da68fca1c1..a501f76bc2f9 100644 --- a/drivers/infiniband/core/uverbs_main.c +++ b/drivers/infiniband/core/uverbs_main.c @@ -493,8 +493,7 @@ void ib_uverbs_srq_event_handler(struct ib_event *event, void *context_ptr) { struct ib_uevent_object *uobj; - uobj = container_of(event->element.srq->uobject, - struct ib_uevent_object, uobject); + uobj = &event->element.srq->uobject->uevent; ib_uverbs_async_handler(context_ptr, uobj->uobject.user_handle, event->event, &uobj->event_list, |