aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amdfalconx86/recipes-kernel/linux/files/1120-fix-amdgpu_drm.h-include-problem.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amdfalconx86/recipes-kernel/linux/files/1120-fix-amdgpu_drm.h-include-problem.patch')
-rw-r--r--meta-amdfalconx86/recipes-kernel/linux/files/1120-fix-amdgpu_drm.h-include-problem.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta-amdfalconx86/recipes-kernel/linux/files/1120-fix-amdgpu_drm.h-include-problem.patch b/meta-amdfalconx86/recipes-kernel/linux/files/1120-fix-amdgpu_drm.h-include-problem.patch
new file mode 100644
index 00000000..820c021e
--- /dev/null
+++ b/meta-amdfalconx86/recipes-kernel/linux/files/1120-fix-amdgpu_drm.h-include-problem.patch
@@ -0,0 +1,51 @@
+From e194f8487e72796b41916e5df38658ee891d0007 Mon Sep 17 00:00:00 2001
+From: Sanjay R Mehta <sanju.mehta@amd.com>
+Date: Wed, 28 Sep 2016 14:57:00 +0530
+Subject: [PATCH] fix amdgpu_drm.h include problem.
+
+Signed-off-by: Qiang Yu <Qiang.Yu@amd.com>
+Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
+Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/Makefile | 2 ++
+ drivers/gpu/drm/amd/include/uapi/drm/amdgpu_drm.h | 2 +-
+ include/uapi/drm/amdgpu_drm.h | 1 +
+ 3 files changed, 4 insertions(+), 1 deletion(-)
+ create mode 100644 include/uapi/drm/amdgpu_drm.h
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/Makefile b/drivers/gpu/drm/amd/amdgpu/Makefile
+index 215f8fc..28e8e4c 100644
+--- a/drivers/gpu/drm/amd/amdgpu/Makefile
++++ b/drivers/gpu/drm/amd/amdgpu/Makefile
+@@ -17,6 +17,8 @@ ccflags-y := -Iinclude/drm -I$(FULL_AMD_PATH)/include/asic_reg \
+ -I$(FULL_AMD_DAL_PATH)/dc \
+ -I$(FULL_AMD_DAL_PATH)/amdgpu_dm
+
++LINUXINCLUDE := -I$(FULL_AMD_PATH)/include/uapi $(LINUXINCLUDE)
++
+ amdgpu-y := amdgpu_drv.o
+
+ # add KMS driver
+diff --git a/drivers/gpu/drm/amd/include/uapi/drm/amdgpu_drm.h b/drivers/gpu/drm/amd/include/uapi/drm/amdgpu_drm.h
+index c84f977..17c7d3f 100644
+--- a/drivers/gpu/drm/amd/include/uapi/drm/amdgpu_drm.h
++++ b/drivers/gpu/drm/amd/include/uapi/drm/amdgpu_drm.h
+@@ -32,7 +32,7 @@
+ #ifndef __AMDGPU_DRM_H__
+ #define __AMDGPU_DRM_H__
+
+-#include "drm.h"
++#include <drm/drm.h>
+
+ #define DRM_AMDGPU_GEM_CREATE 0x00
+ #define DRM_AMDGPU_GEM_MMAP 0x01
+diff --git a/include/uapi/drm/amdgpu_drm.h b/include/uapi/drm/amdgpu_drm.h
+new file mode 100644
+index 0000000..22890bb
+--- /dev/null
++++ b/include/uapi/drm/amdgpu_drm.h
+@@ -0,0 +1 @@
++#include "../../../drivers/gpu/drm/amd/include/uapi/drm/amdgpu_drm.h"
+--
+2.7.4
+