diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0642-drm-Remove-defunct-dma_buf_kmap-stubs.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/0642-drm-Remove-defunct-dma_buf_kmap-stubs.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0642-drm-Remove-defunct-dma_buf_kmap-stubs.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0642-drm-Remove-defunct-dma_buf_kmap-stubs.patch new file mode 100644 index 00000000..e8f4f551 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0642-drm-Remove-defunct-dma_buf_kmap-stubs.patch @@ -0,0 +1,41 @@ +From c68b6ca75c18602b2cfded2e59397a577febc84a Mon Sep 17 00:00:00 2001 +From: Chris Wilson <chris@chris-wilson.co.uk> +Date: Tue, 7 Aug 2018 18:47:48 +0100 +Subject: [PATCH 0642/2940] drm: Remove defunct dma_buf_kmap stubs +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Since commit 09ea0dfbf972 ("dma-buf: make map_atomic and map function +pointers optional"), we no longer need to provide stub no-op functions +as the core now provides them directly. + +References: 09ea0dfbf972 ("dma-buf: make map_atomic and map function pointers optional") +Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> +Cc: Daniel Vetter <daniel@ffwll.ch> +Cc: Gerd Hoffmann <kraxel@redhat.com> +Cc: Alex Deucher <alexander.deucher@amd.com> +Cc: "Christian König" <christian.koenig@amd.com> +Reviewed-by: Christian König <christian.koenig@amd.com> +Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> +Link: https://patchwork.freedesktop.org/patch/msgid/20180807174748.4503-1-chris@chris-wilson.co.uk +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c +index bc406d06b4a3..e5a76a950290 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c +@@ -339,8 +339,6 @@ static const struct dma_buf_ops amdgpu_dmabuf_ops = { + .unmap_dma_buf = drm_gem_unmap_dma_buf, + .release = drm_gem_dmabuf_release, + .begin_cpu_access = amdgpu_gem_begin_cpu_access, +- .map = drm_gem_dmabuf_kmap, +- .unmap = drm_gem_dmabuf_kunmap, + .mmap = drm_gem_dmabuf_mmap, + .vmap = drm_gem_dmabuf_vmap, + .vunmap = drm_gem_dmabuf_vunmap, +-- +2.17.1 + |