gma500: fix -Wmissing-include-dirs warnings
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 3 May 2012 14:16:14 +0000 (15:16 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 7 May 2012 09:58:57 +0000 (10:58 +0100)
cc1: warning: include/drm: No such file or directory [enabled by default]

It's reproducible if you build with O=/some/obj/dir and W=1.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/Makefile

index efdad01..dd7d6b5 100644 (file)
@@ -1,7 +1,7 @@
 #
 #      KMS driver for the GMA500
 #
-ccflags-y += -Iinclude/drm
+ccflags-y += -I$(srctree)/include/drm
 
 gma500_gfx-y += gem_glue.o \
          accel_2d.o \