UAPI: Refer to the DRM UAPI headers with <...> and from certain headers only
authorDavid Howells <dhowells@redhat.com>
Tue, 2 Oct 2012 17:01:03 +0000 (18:01 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 2 Oct 2012 17:01:03 +0000 (18:01 +0100)
Only refer to the DRM UAPI headers (drm.h, drm_mode.h and drm_sarea.h) from
within drmP.h and drm_crtc.h, and use #include <...> to refer to them so that
when the UAPI split happens they can still be accessed.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Dave Jones <davej@redhat.com>
include/drm/drmP.h
include/drm/drm_crtc.h

index d6b67bb9075f21b5782013b500ed6de52cdf4f68..1b33df4884b5c76d48757172de40b4f83085eb80 100644 (file)
@@ -72,7 +72,8 @@
 #include <linux/workqueue.h>
 #include <linux/poll.h>
 #include <asm/pgalloc.h>
-#include "drm.h"
+#include <drm/drm.h>
+#include <drm/drm_sarea.h>
 
 #include <linux/idr.h>
 
index bfacf0d5a225fd0dd4c9a52d42496f3e7049a030..86a0da4635a6453c11fec816ac0bf7201a1e1a8f 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/types.h>
 #include <linux/idr.h>
 #include <linux/fb.h>
+#include <drm/drm_mode.h>
 
 #include <drm/drm_fourcc.h>