drm: align #include directives with libdrm in uapi headers
authorDaniel Vetter <[email protected]>
Wed, 30 Mar 2016 15:54:52 +0000 (17:54 +0200)
committerDaniel Vetter <[email protected]>
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 <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
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)