drm: align #include directives with libdrm in uapi headers
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Mar 2016 15:54:52 +0000 (17:54 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Mar 2016 19:08:09 +0000 (21:08 +0200)
We can't use <drm/*.h> because that upsets the serach paths in libdrm.
Also, drop the circular inclusion in drm_mode.h.

v2: Actually change the right headers.

v3: Drop the #include removal per Emil's request.

Cc: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1459353292-9063-1-git-send-email-daniel.vetter@ffwll.ch
include/uapi/drm/drm.h

index 7d42d105f32a1d090b8980f75cd7b1e17c975696..85ada499574b2b0e975155a06dac1e509f197dc7 100644 (file)
@@ -685,7 +685,7 @@ struct drm_prime_handle {
        __s32 fd;
 };
 
-#include <drm/drm_mode.h>
+#include "drm_mode.h"
 
 #define DRM_IOCTL_BASE                 'd'
 #define DRM_IO(nr)                     _IO(DRM_IOCTL_BASE,nr)