File local-headers-hack.diff of Package drm

---
 drivers/gpu/drm/amd/amdkfd/Makefile |    5 +++--
 drivers/gpu/drm/i915/Makefile       |    2 ++
 drivers/gpu/drm/radeon/Makefile     |    1 +
 3 files changed, 6 insertions(+), 2 deletions(-)

--- a/drivers/gpu/drm/i915/Makefile
+++ b/drivers/gpu/drm/i915/Makefile
@@ -2,6 +2,8 @@
 # Makefile for the drm device driver.  This driver provides support for the
 # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
 
+NOSTDINC_FLAGS := -I$(M)/build-include $(CFLAGS)
+
 # Please keep these build lists sorted!
 
 # core driver code
--- a/drivers/gpu/drm/radeon/Makefile
+++ b/drivers/gpu/drm/radeon/Makefile
@@ -2,6 +2,7 @@
 # Makefile for the drm device driver.  This driver provides support for the
 # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
 
+NOSTDINC_FLAGS := -I$(M)/build-include $(CFLAGS)
 ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include
 
 hostprogs-y := mkregtable
--- a/drivers/gpu/drm/amd/amdkfd/Makefile
+++ b/drivers/gpu/drm/amd/amdkfd/Makefile
@@ -2,8 +2,9 @@
 # Makefile for Heterogenous System Architecture support for AMD GPU devices
 #
 
-ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include/  \
-		-Idrivers/gpu/drm/amd/include/asic_reg
+NOSTDINC_FLAGS := -I$(M)/build-include $(CFLAGS)
+ccflags-y := -Iinclude/drm -I$(M)/drivers/gpu/drm/amd/include/  \
+		-I$(M)/drivers/gpu/drm/amd/include/asic_reg
 
 amdkfd-y	:= kfd_module.o kfd_device.o kfd_chardev.o kfd_topology.o \
 		kfd_pasid.o kfd_doorbell.o kfd_flat_memory.o \