drm/i915: get rid of -Iinclude/drm
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 13 May 2015 07:56:00 +0000 (09:56 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 13 May 2015 09:28:21 +0000 (11:28 +0200)
This results in a warning when building out of tree:
"cc1: warning: include/drm: No such file or directory [enabled by default]"

Most code already uses #include <drm/foo.h> correctly, so fix the
instances that don't.

Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/i915_gem_userptr.c

index a69002e2257d06fee72c131ca854d2975636c307..957434492864eae02d6c716e31d0270907b2e7fb 100644 (file)
@@ -2,8 +2,6 @@
 # Makefile for the drm device driver.  This driver provides support for the
 # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
 
-ccflags-y := -Iinclude/drm
-
 # Please keep these build lists sorted!
 
 # core driver code
index 1719078c763ac0d140c8fb7a9e954862bd8d3bc7..4039ede158be237cb34c165634e5d471159dc710 100644 (file)
@@ -22,8 +22,8 @@
  *
  */
 
-#include "drmP.h"
-#include "i915_drm.h"
+#include <drm/drmP.h>
+#include <drm/i915_drm.h>
 #include "i915_drv.h"
 #include "i915_trace.h"
 #include "intel_drv.h"