summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/uverbs_uapi.c
diff options
context:
space:
mode:
authorKamal Heib <kamalheib1@gmail.com>2018-12-10 21:09:48 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-12-12 07:40:16 -0700
commit3023a1e93656c02b8d6a3a46e712b815843fa514 (patch)
tree6c1471a47bb6ee96cee6fcac950a116701d79f8d /drivers/infiniband/core/uverbs_uapi.c
parent02a42f8e40caed53fd357c9c33912e1bfb6f0365 (diff)
downloadlinux-3023a1e93656c02b8d6a3a46e712b815843fa514.tar.gz
linux-3023a1e93656c02b8d6a3a46e712b815843fa514.tar.bz2
linux-3023a1e93656c02b8d6a3a46e712b815843fa514.zip
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.c3
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,
return 0;
case UAPI_DEF_IS_SUPPORTED_DEV_FN: {
- void **ibdev_fn = (void *)ibdev + def->needs_fn_offset;
+ void **ibdev_fn =
+ (void *)(&ibdev->ops) + def->needs_fn_offset;
if (*ibdev_fn)
continue;