media: atomisp: remove unused hmm address translation functions
authorHans de Goede <hdegoede@redhat.com>
Wed, 15 Jun 2022 20:50:24 +0000 (21:50 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 15:23:33 +0000 (16:23 +0100)
hmm_isp_vaddr_to_host_vaddr() and hmm_host_vaddr_to_hrt_vaddr()
are unused, remove them.

Link: https://lore.kernel.org/linux-media/20220615205037.16549-28-hdegoede@redhat.com
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/include/hmm/hmm.h
drivers/staging/media/atomisp/pci/hmm/hmm.c

index 37366e3..99bf7d0 100644 (file)
@@ -67,17 +67,6 @@ void hmm_vunmap(ia_css_ptr virt);
 void hmm_flush_vmap(ia_css_ptr virt);
 
 /*
- * Address translation from ISP shared memory address to kernel virtual address
- * if the memory is not vmmaped,  then do it.
- */
-void *hmm_isp_vaddr_to_host_vaddr(ia_css_ptr ptr, bool cached);
-
-/*
- * Address translation from kernel virtual address to ISP shared memory address
- */
-ia_css_ptr hmm_host_vaddr_to_hrt_vaddr(const void *ptr);
-
-/*
  * map ISP memory starts with virt to specific vma.
  *
  * used for mmap operation.
index 82b46aa..bbb5f87 100644 (file)
@@ -608,23 +608,3 @@ void hmm_vunmap(ia_css_ptr virt)
 
        hmm_bo_vunmap(bo);
 }
-
-void *hmm_isp_vaddr_to_host_vaddr(ia_css_ptr ptr, bool cached)
-{
-       return hmm_vmap(ptr, cached);
-       /* vmunmap will be done in hmm_bo_release() */
-}
-
-ia_css_ptr hmm_host_vaddr_to_hrt_vaddr(const void *ptr)
-{
-       struct hmm_buffer_object *bo;
-
-       bo = hmm_bo_device_search_vmap_start(&bo_device, ptr);
-       if (bo)
-               return bo->start;
-
-       dev_err(atomisp_dev,
-               "can not find buffer object whose kernel virtual address is %p\n",
-               ptr);
-       return 0;
-}