This argument is unused by the function.
Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        cb->buf->mappable_size = cb->size;
        cb->buf->private = cb;
 
-       hl_ctx_get(cb_args->hdev, cb->ctx);
+       hl_ctx_get(cb->ctx);
 
        if (cb_args->map_cb) {
                if (ctx_id == HL_KERNEL_ASID_ID) {
 
        }
 
        /* increment refcnt for context */
-       hl_ctx_get(hdev, ctx);
+       hl_ctx_get(ctx);
 
        cs->ctx = ctx;
        cs->submitted = false;
 
        handle->count = count;
 
-       hl_ctx_get(hdev, hpriv->ctx);
+       hl_ctx_get(hpriv->ctx);
        handle->ctx = hpriv->ctx;
        mgr = &hpriv->ctx->sig_mgr;
 
        if (timestamp)
                *timestamp = 0;
 
-       hl_ctx_get(hdev, ctx);
+       hl_ctx_get(ctx);
 
        fence = hl_ctx_get_fence(ctx, seq);
 
        mcs_data.fence_arr = fence_arr;
        mcs_data.arr_len = seq_arr_len;
 
-       hl_ctx_get(hdev, ctx);
+       hl_ctx_get(ctx);
 
        /* wait (with timeout) for the first CS to be completed */
        mcs_data.timeout_jiffies = hl_usecs64_to_jiffies(args->in.timeout_us);
 
        timeout = hl_usecs64_to_jiffies(timeout_us);
 
-       hl_ctx_get(hdev, ctx);
+       hl_ctx_get(ctx);
 
        cq_cb = hl_cb_get(cb_mmg, cq_counters_handle);
        if (!cq_cb) {
 
        timeout = hl_usecs64_to_jiffies(timeout_us);
 
-       hl_ctx_get(hdev, ctx);
+       hl_ctx_get(ctx);
 
        pend = kzalloc(sizeof(*pend), GFP_KERNEL);
        if (!pend) {
 
        return rc;
 }
 
-void hl_ctx_get(struct hl_device *hdev, struct hl_ctx *ctx)
+void hl_ctx_get(struct hl_ctx *ctx)
 {
        kref_get(&ctx->refcount);
 }
                 * immediately once we find him
                 */
                ctx = hpriv->ctx;
-               hl_ctx_get(hdev, ctx);
+               hl_ctx_get(ctx);
                break;
        }
 
 
 void hl_ctx_free(struct hl_device *hdev, struct hl_ctx *ctx);
 int hl_ctx_init(struct hl_device *hdev, struct hl_ctx *ctx, bool is_kernel_ctx);
 void hl_ctx_do_release(struct kref *ref);
-void hl_ctx_get(struct hl_device *hdev,        struct hl_ctx *ctx);
+void hl_ctx_get(struct hl_ctx *ctx);
 int hl_ctx_put(struct hl_ctx *ctx);
 struct hl_ctx *hl_get_compute_ctx(struct hl_device *hdev);
 struct hl_fence *hl_ctx_get_fence(struct hl_ctx *ctx, u64 seq);
 
        vma->vm_ops = &hw_block_vm_ops;
        vma->vm_private_data = lnode;
 
-       hl_ctx_get(hdev, ctx);
+       hl_ctx_get(ctx);
 
        rc = hdev->asic_funcs->hw_block_mmap(hdev, vma, block_id, block_size);
        if (rc) {
        }
 
        hl_dmabuf->ctx = ctx;
-       hl_ctx_get(hdev, hl_dmabuf->ctx);
+       hl_ctx_get(hl_dmabuf->ctx);
 
        *dmabuf_fd = fd;
 
 
         * as actual prefetch is done in a WQ we must get the context (and put it
         * at the end of the work function)
         */
-       hl_ctx_get(ctx->hdev, ctx);
+       hl_ctx_get(ctx);
        queue_work(ctx->hdev->pf_wq, &handle_pf_work->pf_work);
 
        return 0;