aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/misc/habanalabs/common/command_buffer.c
diff options
context:
space:
mode:
authorOhad Sharabi <osharabi@habana.ai>2022-05-11 13:28:39 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-22 21:01:21 +0200
commite31dd9362f01682192d80221cc4339e4f7140f30 (patch)
treefea5726788bb06f453f3947622fd128283889517 /drivers/misc/habanalabs/common/command_buffer.c
parenthabanalabs: do MMU prefetch as deferred work (diff)
downloadwireguard-linux-e31dd9362f01682192d80221cc4339e4f7140f30.tar.xz
wireguard-linux-e31dd9362f01682192d80221cc4339e4f7140f30.zip
habanalabs: remove hdev from hl_ctx_get args
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>
Diffstat (limited to 'drivers/misc/habanalabs/common/command_buffer.c')
-rw-r--r--drivers/misc/habanalabs/common/command_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/common/command_buffer.c b/drivers/misc/habanalabs/common/command_buffer.c
index 1fac72c38c87..e13b2b39c058 100644
--- a/drivers/misc/habanalabs/common/command_buffer.c
+++ b/drivers/misc/habanalabs/common/command_buffer.c
@@ -283,7 +283,7 @@ static int hl_cb_mmap_mem_alloc(struct hl_mmap_mem_buf *buf, gfp_t gfp, void *ar
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) {