]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm: Remove struct drm_driver.gem_prime_mmap
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 13 Jun 2023 14:51:33 +0000 (16:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 19 Jun 2023 11:56:40 +0000 (13:56 +0200)
commit0adec22702d497385dbdc52abb165f379a00efba
treea9f34a922c354670898fb3716eef7f9f5ee94db4
parent734458b7620161c07acb801a396d0a4837bcdbd9
drm: Remove struct drm_driver.gem_prime_mmap

All drivers initialize this field with drm_gem_prime_mmap(). Call
the function directly and remove the field. Simplifies the code and
resolves a long-standing TODO item.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230613150441.17720-3-tzimmermann@suse.de
26 files changed:
Documentation/gpu/todo.rst
drivers/accel/ivpu/ivpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/drm_fbdev_dma.c
drivers/gpu/drm/drm_prime.c
drivers/gpu/drm/etnaviv/etnaviv_drv.c
drivers/gpu/drm/exynos/exynos_drm_drv.c
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
drivers/gpu/drm/lima/lima_drv.c
drivers/gpu/drm/mediatek/mtk_drm_drv.c
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_gem_prime.c
drivers/gpu/drm/nouveau/nouveau_drm.c
drivers/gpu/drm/panfrost/panfrost_drv.c
drivers/gpu/drm/pl111/pl111_drv.c
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/rcar-du/rcar_du_drv.c
drivers/gpu/drm/rockchip/rockchip_drm_drv.c
drivers/gpu/drm/v3d/v3d_drv.c
drivers/gpu/drm/virtio/virtgpu_drv.c
drivers/gpu/drm/xen/xen_drm_front.c
include/drm/drm_drv.h
include/drm/drm_gem_dma_helper.h
include/drm/drm_gem_shmem_helper.h
include/drm/drm_gem_vram_helper.h