Re: [PATCH] drm/omap: remove now unused functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 22, 2018 at 6:37 AM, Christian König
<ckoenig.leichtzumerken@xxxxxxxxx> wrote:
> Some functions are unused after removal of the kmap_atomic
> DMA-buf interface.
>
> Signed-off-by: Christian König <christian.koenig@xxxxxxx>
> Fixes: f664a5269542 ("dma-buf: remove kmap_atomic interface")

Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx>

> ---
>  drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c | 17 -----------------
>  1 file changed, 17 deletions(-)
>
> diff --git a/drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c b/drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
> index 1a073f9b2834..ec04a69ade46 100644
> --- a/drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
> +++ b/drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
> @@ -93,23 +93,6 @@ static int omap_gem_dmabuf_end_cpu_access(struct dma_buf *buffer,
>         return 0;
>  }
>
> -
> -static void *omap_gem_dmabuf_kmap_atomic(struct dma_buf *buffer,
> -               unsigned long page_num)
> -{
> -       struct drm_gem_object *obj = buffer->priv;
> -       struct page **pages;
> -       omap_gem_get_pages(obj, &pages, false);
> -       omap_gem_cpu_sync_page(obj, page_num);
> -       return kmap_atomic(pages[page_num]);
> -}
> -
> -static void omap_gem_dmabuf_kunmap_atomic(struct dma_buf *buffer,
> -               unsigned long page_num, void *addr)
> -{
> -       kunmap_atomic(addr);
> -}
> -
>  static void *omap_gem_dmabuf_kmap(struct dma_buf *buffer,
>                 unsigned long page_num)
>  {
> --
> 2.14.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux