From 225a91bc54050d05450e3481d0fcab24d56f94fc Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 3 Sep 2013 10:38:29 +0200 Subject: [PATCH] lib/drmtest: include sys/mman.h from drmtest.h We need it for mmapping to get at PROT_READ|WRITE anyway. Signed-off-by: Daniel Vetter --- lib/drmtest.h | 1 + tests/gem_bad_length.c | 1 - tests/gem_cs_tlb.c | 1 - tests/gem_ctx_bad_exec.c | 1 - tests/gem_ctx_exec.c | 1 - tests/gem_evict_alignment.c | 1 - tests/gem_evict_everything.c | 1 - tests/gem_exec_big.c | 1 - tests/gem_exec_blt.c | 1 - tests/gem_exec_faulting_reloc.c | 1 - tests/gem_exec_nop.c | 1 - tests/gem_fence_thrash.c | 1 - tests/gem_gtt_cpu_tlb.c | 1 - tests/gem_gtt_speed.c | 1 - tests/gem_mmap.c | 1 - tests/gem_mmap_gtt.c | 1 - tests/gem_mmap_offset_exhaustion.c | 1 - tests/gem_pread.c | 1 - tests/gem_pwrite.c | 1 - tests/gem_pwrite_pread.c | 1 - tests/gem_reloc_overflow.c | 1 - tests/gem_set_tiling_vs_gtt.c | 1 - tests/gem_set_tiling_vs_pwrite.c | 1 - tests/gem_suspend.c | 1 - tests/gem_tiled_pread.c | 1 - tests/gem_tiled_pread_pwrite.c | 1 - tests/gem_tiled_swapping.c | 1 - tests/gem_tiling_max_stride.c | 1 - tests/gen3_mixed_blits.c | 1 - tests/gen3_render_mixed_blits.c | 1 - tests/gen3_render_tiledx_blits.c | 1 - tests/gen3_render_tiledy_blits.c | 1 - tests/kms_flip.c | 1 - tests/prime_self_import.c | 1 - tests/testdisplay.c | 1 - 35 files changed, 1 insertion(+), 34 deletions(-) diff --git a/lib/drmtest.h b/lib/drmtest.h index bf947df..3d1c323 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -36,6 +36,7 @@ #include #include #include +#include #include "xf86drm.h" #include "xf86drmMode.h" diff --git a/tests/gem_bad_length.c b/tests/gem_bad_length.c index 940dffd..72f0fe3 100644 --- a/tests/gem_bad_length.c +++ b/tests/gem_bad_length.c @@ -34,7 +34,6 @@ #include #include #include -#include #include "drm.h" #include "i915_drm.h" #include "drmtest.h" diff --git a/tests/gem_cs_tlb.c b/tests/gem_cs_tlb.c index 45e8b72..870821b 100644 --- a/tests/gem_cs_tlb.c +++ b/tests/gem_cs_tlb.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gem_ctx_bad_exec.c b/tests/gem_ctx_bad_exec.c index 68b74af..f0f49c1 100644 --- a/tests/gem_ctx_bad_exec.c +++ b/tests/gem_ctx_bad_exec.c @@ -40,7 +40,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gem_ctx_exec.c b/tests/gem_ctx_exec.c index 7b5be56..5f2c59f 100644 --- a/tests/gem_ctx_exec.c +++ b/tests/gem_ctx_exec.c @@ -39,7 +39,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gem_evict_alignment.c b/tests/gem_evict_alignment.c index 83ce5be..af0cbbf 100644 --- a/tests/gem_evict_alignment.c +++ b/tests/gem_evict_alignment.c @@ -40,7 +40,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gem_evict_everything.c b/tests/gem_evict_everything.c index 63b2d46..86b0b6f 100644 --- a/tests/gem_evict_everything.c +++ b/tests/gem_evict_everything.c @@ -40,7 +40,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gem_exec_big.c b/tests/gem_exec_big.c index 4b3113a..7bd6a9f 100644 --- a/tests/gem_exec_big.c +++ b/tests/gem_exec_big.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gem_exec_blt.c b/tests/gem_exec_blt.c index cbaa78b..60facf3 100644 --- a/tests/gem_exec_blt.c +++ b/tests/gem_exec_blt.c @@ -35,7 +35,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gem_exec_faulting_reloc.c b/tests/gem_exec_faulting_reloc.c index 73b8f6d..d25bd5e 100644 --- a/tests/gem_exec_faulting_reloc.c +++ b/tests/gem_exec_faulting_reloc.c @@ -35,7 +35,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c index 26bb359..be5f2c5 100644 --- a/tests/gem_exec_nop.c +++ b/tests/gem_exec_nop.c @@ -35,7 +35,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gem_fence_thrash.c b/tests/gem_fence_thrash.c index a5e9679..8c963af 100644 --- a/tests/gem_fence_thrash.c +++ b/tests/gem_fence_thrash.c @@ -39,7 +39,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gem_gtt_cpu_tlb.c b/tests/gem_gtt_cpu_tlb.c index 4c62ea3..bdae4f8 100644 --- a/tests/gem_gtt_cpu_tlb.c +++ b/tests/gem_gtt_cpu_tlb.c @@ -39,7 +39,6 @@ #include #include #include -#include #include "drm.h" #include "i915_drm.h" #include "drmtest.h" diff --git a/tests/gem_gtt_speed.c b/tests/gem_gtt_speed.c index d685838..459bdab 100644 --- a/tests/gem_gtt_speed.c +++ b/tests/gem_gtt_speed.c @@ -36,7 +36,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gem_mmap.c b/tests/gem_mmap.c index 939fd4c..9c3391e 100644 --- a/tests/gem_mmap.c +++ b/tests/gem_mmap.c @@ -34,7 +34,6 @@ #include #include #include -#include #include "drm.h" #include "i915_drm.h" #include "drmtest.h" diff --git a/tests/gem_mmap_gtt.c b/tests/gem_mmap_gtt.c index ed04048..79e34e2 100644 --- a/tests/gem_mmap_gtt.c +++ b/tests/gem_mmap_gtt.c @@ -35,7 +35,6 @@ #include #include #include -#include #include "drm.h" #include "i915_drm.h" #include "drmtest.h" diff --git a/tests/gem_mmap_offset_exhaustion.c b/tests/gem_mmap_offset_exhaustion.c index 1ec3299..d834fda 100644 --- a/tests/gem_mmap_offset_exhaustion.c +++ b/tests/gem_mmap_offset_exhaustion.c @@ -34,7 +34,6 @@ #include #include #include -#include #include "drm.h" #include "i915_drm.h" #include "drmtest.h" diff --git a/tests/gem_pread.c b/tests/gem_pread.c index ea789eb..d1baf54 100644 --- a/tests/gem_pread.c +++ b/tests/gem_pread.c @@ -35,7 +35,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gem_pwrite.c b/tests/gem_pwrite.c index 5ea7d16..d04535b 100644 --- a/tests/gem_pwrite.c +++ b/tests/gem_pwrite.c @@ -35,7 +35,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gem_pwrite_pread.c b/tests/gem_pwrite_pread.c index 852b16c..42c3391 100644 --- a/tests/gem_pwrite_pread.c +++ b/tests/gem_pwrite_pread.c @@ -35,7 +35,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gem_reloc_overflow.c b/tests/gem_reloc_overflow.c index f91fc91..ff2e2f5 100644 --- a/tests/gem_reloc_overflow.c +++ b/tests/gem_reloc_overflow.c @@ -36,7 +36,6 @@ #include #include #include -#include #include #include #include diff --git a/tests/gem_set_tiling_vs_gtt.c b/tests/gem_set_tiling_vs_gtt.c index a620c99..ac3be7d 100644 --- a/tests/gem_set_tiling_vs_gtt.c +++ b/tests/gem_set_tiling_vs_gtt.c @@ -34,7 +34,6 @@ #include #include #include -#include #include "drm.h" #include "i915_drm.h" #include "drmtest.h" diff --git a/tests/gem_set_tiling_vs_pwrite.c b/tests/gem_set_tiling_vs_pwrite.c index f27accd..fb3c7ee 100644 --- a/tests/gem_set_tiling_vs_pwrite.c +++ b/tests/gem_set_tiling_vs_pwrite.c @@ -34,7 +34,6 @@ #include #include #include -#include #include "drm.h" #include "i915_drm.h" #include "drmtest.h" diff --git a/tests/gem_suspend.c b/tests/gem_suspend.c index de3f51c..eea4cfc 100644 --- a/tests/gem_suspend.c +++ b/tests/gem_suspend.c @@ -34,7 +34,6 @@ #include #include #include -#include #include "drm.h" #include "i915_drm.h" #include "drmtest.h" diff --git a/tests/gem_tiled_pread.c b/tests/gem_tiled_pread.c index 9abdb88..f376093 100644 --- a/tests/gem_tiled_pread.c +++ b/tests/gem_tiled_pread.c @@ -44,7 +44,6 @@ #include #include #include -#include #include "drm.h" #include "i915_drm.h" #include "drmtest.h" diff --git a/tests/gem_tiled_pread_pwrite.c b/tests/gem_tiled_pread_pwrite.c index f92897e..3a0817c 100644 --- a/tests/gem_tiled_pread_pwrite.c +++ b/tests/gem_tiled_pread_pwrite.c @@ -53,7 +53,6 @@ #include #include #include -#include #include "drm.h" #include "i915_drm.h" #include "drmtest.h" diff --git a/tests/gem_tiled_swapping.c b/tests/gem_tiled_swapping.c index 89b9c94..ab76fe1 100644 --- a/tests/gem_tiled_swapping.c +++ b/tests/gem_tiled_swapping.c @@ -53,7 +53,6 @@ #include #include #include -#include #include "drm.h" #include "i915_drm.h" #include "drmtest.h" diff --git a/tests/gem_tiling_max_stride.c b/tests/gem_tiling_max_stride.c index 28e94bc..a00eb18 100644 --- a/tests/gem_tiling_max_stride.c +++ b/tests/gem_tiling_max_stride.c @@ -35,7 +35,6 @@ #include #include #include -#include #include "drm.h" #include "i915_drm.h" #include "drmtest.h" diff --git a/tests/gen3_mixed_blits.c b/tests/gen3_mixed_blits.c index 4aec522..1f91df6 100644 --- a/tests/gen3_mixed_blits.c +++ b/tests/gen3_mixed_blits.c @@ -41,7 +41,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gen3_render_mixed_blits.c b/tests/gen3_render_mixed_blits.c index 343fe99..b3e25da 100644 --- a/tests/gen3_render_mixed_blits.c +++ b/tests/gen3_render_mixed_blits.c @@ -41,7 +41,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gen3_render_tiledx_blits.c b/tests/gen3_render_tiledx_blits.c index e584181..3db8f0c 100644 --- a/tests/gen3_render_tiledx_blits.c +++ b/tests/gen3_render_tiledx_blits.c @@ -41,7 +41,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/gen3_render_tiledy_blits.c b/tests/gen3_render_tiledy_blits.c index 993b3c2..37a4d1a 100644 --- a/tests/gen3_render_tiledy_blits.c +++ b/tests/gen3_render_tiledy_blits.c @@ -41,7 +41,6 @@ #include #include #include -#include #include #include "drm.h" #include "i915_drm.h" diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 5103bf7..8b972bb 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include diff --git a/tests/prime_self_import.c b/tests/prime_self_import.c index 32b9aa7..481a809 100644 --- a/tests/prime_self_import.c +++ b/tests/prime_self_import.c @@ -40,7 +40,6 @@ #include #include #include -#include #include #include diff --git a/tests/testdisplay.c b/tests/testdisplay.c index 3413359..6c39b68 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -56,7 +56,6 @@ #include #include #include -#include #include #include "i915_drm.h" -- 2.7.4