diff options
author | Kamal Heib <kamalheib1@gmail.com> | 2018-12-10 14:09:48 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-12-12 09:40:16 -0500 |
commit | 3023a1e93656c02b8d6a3a46e712b815843fa514 (patch) | |
tree | 6c1471a47bb6ee96cee6fcac950a116701d79f8d /drivers/infiniband/core/uverbs_uapi.c | |
parent | 02a42f8e40caed53fd357c9c33912e1bfb6f0365 (diff) |
RDMA: Start use ib_device_ops
Make all the required change to start use the ib_device_ops structure.
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/uverbs_uapi.c')
-rw-r--r-- | drivers/infiniband/core/uverbs_uapi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/core/uverbs_uapi.c b/drivers/infiniband/core/uverbs_uapi.c index 0136c1d78a0f..830e48fe5e65 100644 --- a/drivers/infiniband/core/uverbs_uapi.c +++ b/drivers/infiniband/core/uverbs_uapi.c | |||
@@ -300,7 +300,8 @@ static int uapi_merge_def(struct uverbs_api *uapi, struct ib_device *ibdev, | |||
300 | return 0; | 300 | return 0; |
301 | 301 | ||
302 | case UAPI_DEF_IS_SUPPORTED_DEV_FN: { | 302 | case UAPI_DEF_IS_SUPPORTED_DEV_FN: { |
303 | void **ibdev_fn = (void *)ibdev + def->needs_fn_offset; | 303 | void **ibdev_fn = |
304 | (void *)(&ibdev->ops) + def->needs_fn_offset; | ||
304 | 305 | ||
305 | if (*ibdev_fn) | 306 | if (*ibdev_fn) |
306 | continue; | 307 | continue; |