lib: unnecessary header removal for drmtest.h, part 2

I've left unistd.h in it - it's not strictly required but most users
of drmtest.h want it for the open helpers, and then you kinda need to
close that file descriptor again ...

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2014-03-22 21:29:01 +01:00
parent e49ceb8690
commit 254f19ba8d
22 changed files with 48 additions and 13 deletions
+3 -6
View File
@@ -28,16 +28,13 @@
#ifndef DRMTEST_H
#define DRMTEST_H
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <sys/mman.h>
#include "xf86drm.h"
#include "xf86drmMode.h"
#include "intel_batchbuffer.h"
#include <xf86drm.h>
#include <intel_batchbuffer.h>
#ifdef ANDROID
#ifndef HAVE_MMAP64
+1 -1
View File
@@ -48,9 +48,9 @@
#include <sys/syscall.h>
#include <sys/utsname.h>
#include <termios.h>
#include <errno.h>
#include "drmtest.h"
#include "i915_drm.h"
#include "intel_chipset.h"
#include "intel_gpu_tools.h"
#include "igt_debugfs.h"
+2
View File
@@ -32,8 +32,10 @@
#include <setjmp.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <stdarg.h>
bool __igt_fixture(void);
void __igt_fixture_complete(void);
+1
View File
@@ -27,6 +27,7 @@
#include <sys/mount.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
+5 -1
View File
@@ -23,14 +23,18 @@
*/
#define _GNU_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <stdarg.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <linux/kd.h>
#include "drm_fourcc.h"
#include <errno.h>
#include <drm_fourcc.h>
#include "drmtest.h"
#include "igt_kms.h"
+2
View File
@@ -29,6 +29,8 @@
#include <stdint.h>
#include <cairo.h>
#include <xf86drmMode.h>
#include "igt_display.h"
struct kmstest_connector_config {
+1
View File
@@ -47,6 +47,7 @@
#include <sys/syscall.h>
#include <sys/utsname.h>
#include <termios.h>
#include <errno.h>
#include "drmtest.h"
#include "i915_drm.h"