[PATCH 3/8] Cleanup includes

Tim Wiederhake twied at gmx.net
Mon Jul 16 07:02:47 PDT 2012


---
 intel/intel_bufmgr_gem.c    |    4 ++--
 tests/kmstest/main.c        |    3 ++-
 tests/modetest/modetest.c   |    2 +-
 tests/ttmtest/src/ttmtest.c |    6 +++---
 4 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 57319fb..28f8887 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -40,6 +40,7 @@
 
 #include <xf86drm.h>
 #include <xf86atomic.h>
+#include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -53,13 +54,12 @@
 #include <sys/types.h>
 #include <stdbool.h>
 
-#include "errno.h"
 #include "libdrm_lists.h"
 #include "intel_bufmgr.h"
 #include "intel_bufmgr_priv.h"
 #include "intel_chipset.h"
 #include "intel_aub.h"
-#include "string.h"
+
 
 #include "i915_drm.h"
 
diff --git a/tests/kmstest/main.c b/tests/kmstest/main.c
index 5df0a38..616162d 100644
--- a/tests/kmstest/main.c
+++ b/tests/kmstest/main.c
@@ -26,10 +26,11 @@
  **************************************************************************/
 
 
+#include <libkms.h>
 #include <stdio.h>
 #include <string.h>
 #include "xf86drm.h"
-#include "libkms.h"
+
 
 #define CHECK_RET_RETURN(ret, str) \
 	if (ret < 0) { \
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index ec3121e..dff40d1 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -40,6 +40,7 @@
 #include "config.h"
 
 #include <assert.h>
+#include <libkms.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
@@ -53,7 +54,6 @@
 #include "xf86drm.h"
 #include "xf86drmMode.h"
 #include "drm_fourcc.h"
-#include "libkms.h"
 
 #ifdef HAVE_CAIRO
 #include <math.h>
diff --git a/tests/ttmtest/src/ttmtest.c b/tests/ttmtest/src/ttmtest.c
index c94e940..59e9623 100644
--- a/tests/ttmtest/src/ttmtest.c
+++ b/tests/ttmtest/src/ttmtest.c
@@ -39,13 +39,13 @@
 #include <drm/drm.h>
 #include "xf86dri.h"
 #include "xf86drm.h"
-#include "stdio.h"
-#include "sys/types.h"
+#include <stdio.h>
+#include <sys/types.h>
 #include <unistd.h>
 #include <string.h>
 #include <errno.h>
 #include <stdlib.h>
-#include "sys/mman.h"
+#include <sys/mman.h>
 
 typedef struct
 {
-- 
1.7.10.4



More information about the dri-devel mailing list