aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/5378-drm-amdgpu-include-pagemap.h-for-release_pages.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/5378-drm-amdgpu-include-pagemap.h-for-release_pages.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/5378-drm-amdgpu-include-pagemap.h-for-release_pages.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/5378-drm-amdgpu-include-pagemap.h-for-release_pages.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/5378-drm-amdgpu-include-pagemap.h-for-release_pages.patch
new file mode 100644
index 00000000..f5b64f38
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/5378-drm-amdgpu-include-pagemap.h-for-release_pages.patch
@@ -0,0 +1,29 @@
+From 29be53e8944141d038206179d53514d077f9bad1 Mon Sep 17 00:00:00 2001
+From: Stephen Rothwell <sfr@canb.auug.org.au>
+Date: Wed, 16 May 2018 16:43:34 +1000
+Subject: [PATCH 5378/5725] drm/amdgpu: include pagemap.h for release_pages()
+
+Fixes: 5ae0283e831a ("drm/amdgpu: Add userptr support for KFD"
+Cc: Felix Kuehling <Felix.Kuehling@amd.com>
+Cc: Oded Gabbay <oded.gabbay@gmail.com>
+Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
+Signed-off-by: Dave Airlie <airlied@redhat.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
+index 0b73606..1390136 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
+@@ -23,6 +23,7 @@
+ #define pr_fmt(fmt) "kfd2kgd: " fmt
+
+ #include <linux/list.h>
++#include <linux/pagemap.h>
+ #include <linux/sched/mm.h>
+ #include <drm/drmP.h>
+ #include "amdgpu_object.h"
+--
+2.7.4
+