aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom2018-02-01 05:12:05 -0600
committerEric Engestrom2018-03-20 13:19:26 -0500
commit0926f0af54d654b1a95826066edcae30b8052581 (patch)
tree546efdeadf79644a90ca0c0418dbdea848b81ef4
parent431f1a147e33b3fae7ea78a47d40a6014b682ebd (diff)
downloadexternal-libdrm-0926f0af54d654b1a95826066edcae30b8052581.tar.gz
external-libdrm-0926f0af54d654b1a95826066edcae30b8052581.tar.xz
external-libdrm-0926f0af54d654b1a95826066edcae30b8052581.zip
meson,configure: include config.h automatically
This will prevent any more missing `#include "config.h"` bug, at the cost of having to recompile some files that didn't need to be when changing build options. Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
-rw-r--r--amdgpu/amdgpu_asic_id.c4
-rw-r--r--amdgpu/amdgpu_bo.c4
-rw-r--r--amdgpu/amdgpu_cs.c4
-rw-r--r--amdgpu/amdgpu_device.c4
-rw-r--r--amdgpu/amdgpu_gpu_info.c4
-rw-r--r--amdgpu/amdgpu_internal.h4
-rw-r--r--amdgpu/amdgpu_vamgr.c4
-rw-r--r--amdgpu/amdgpu_vm.c4
-rw-r--r--amdgpu/util_hash.c4
-rw-r--r--amdgpu/util_hash.h4
-rw-r--r--amdgpu/util_hash_table.c4
-rw-r--r--amdgpu/util_hash_table.h4
-rw-r--r--configure.ac2
-rw-r--r--etnaviv/etnaviv_bo.c4
-rw-r--r--etnaviv/etnaviv_bo_cache.c4
-rw-r--r--etnaviv/etnaviv_cmd_stream.c4
-rw-r--r--etnaviv/etnaviv_device.c4
-rw-r--r--etnaviv/etnaviv_gpu.c4
-rw-r--r--etnaviv/etnaviv_perfmon.c4
-rw-r--r--etnaviv/etnaviv_pipe.c4
-rw-r--r--exynos/exynos_drm.c4
-rw-r--r--exynos/exynos_fimg2d.c4
-rw-r--r--freedreno/freedreno_bo.c4
-rw-r--r--freedreno/freedreno_bo_cache.c4
-rw-r--r--freedreno/freedreno_device.c4
-rw-r--r--freedreno/freedreno_pipe.c4
-rw-r--r--freedreno/freedreno_priv.h4
-rw-r--r--freedreno/freedreno_ringbuffer.c4
-rw-r--r--freedreno/kgsl/kgsl_bo.c4
-rw-r--r--freedreno/kgsl/kgsl_device.c4
-rw-r--r--freedreno/kgsl/kgsl_pipe.c4
-rw-r--r--freedreno/kgsl/kgsl_ringbuffer.c4
-rw-r--r--freedreno/msm/msm_bo.c4
-rw-r--r--freedreno/msm/msm_device.c4
-rw-r--r--freedreno/msm/msm_pipe.c4
-rw-r--r--freedreno/msm/msm_ringbuffer.c4
-rw-r--r--intel/intel_bufmgr.c4
-rw-r--r--intel/intel_bufmgr_fake.c4
-rw-r--r--intel/intel_bufmgr_gem.c4
-rw-r--r--intel/intel_decode.c4
-rw-r--r--intel/mm.c4
-rw-r--r--intel/mm.h4
-rw-r--r--intel/test_decode.c4
-rw-r--r--libkms/api.c4
-rw-r--r--libkms/dumb.c4
-rw-r--r--libkms/exynos.c4
-rw-r--r--libkms/intel.c4
-rw-r--r--libkms/internal.h4
-rw-r--r--libkms/linux.c4
-rw-r--r--libkms/nouveau.c4
-rw-r--r--libkms/radeon.c4
-rw-r--r--libkms/vmwgfx.c4
-rw-r--r--meson.build2
-rw-r--r--nouveau/abi16.c4
-rw-r--r--nouveau/bufctx.c4
-rw-r--r--nouveau/nouveau.c4
-rw-r--r--nouveau/pushbuf.c4
-rw-r--r--omap/omap_drm.c4
-rw-r--r--radeon/radeon_bo.c3
-rw-r--r--radeon/radeon_bo_gem.c3
-rw-r--r--radeon/radeon_cs.c3
-rw-r--r--radeon/radeon_cs_gem.c3
-rw-r--r--radeon/radeon_cs_space.c3
-rw-r--r--radeon/radeon_surface.c3
-rw-r--r--tegra/tegra.c4
-rw-r--r--tests/amdgpu/amdgpu_test.c4
-rw-r--r--tests/amdgpu/basic_tests.c4
-rw-r--r--tests/amdgpu/bo_tests.c4
-rw-r--r--tests/amdgpu/cs_tests.c4
-rw-r--r--tests/amdgpu/deadlock_tests.c4
-rw-r--r--tests/amdgpu/uvd_enc_tests.c4
-rw-r--r--tests/amdgpu/vce_tests.c4
-rw-r--r--tests/amdgpu/vcn_tests.c4
-rw-r--r--tests/amdgpu/vm_tests.c4
-rw-r--r--tests/etnaviv/etnaviv_2d_test.c4
-rw-r--r--tests/etnaviv/etnaviv_bo_cache_test.c4
-rw-r--r--tests/exynos/exynos_fimg2d_test.c4
-rw-r--r--tests/kms/kms-steal-crtc.c4
-rw-r--r--tests/kms/kms-universal-planes.c4
-rw-r--r--tests/kms/libkms-test-crtc.c4
-rw-r--r--tests/kms/libkms-test-device.c4
-rw-r--r--tests/kms/libkms-test-framebuffer.c4
-rw-r--r--tests/kms/libkms-test-plane.c4
-rw-r--r--tests/kms/libkms-test-screen.c4
-rw-r--r--tests/modetest/buffers.c4
-rw-r--r--tests/modetest/cursor.c4
-rw-r--r--tests/modetest/modetest.c4
-rw-r--r--tests/nouveau/threaded.c4
-rw-r--r--tests/tegra/openclose.c4
-rw-r--r--tests/util/format.c4
-rw-r--r--tests/util/kms.c4
-rw-r--r--tests/util/pattern.c4
-rw-r--r--tests/vbltest/vbltest.c4
-rw-r--r--xf86atomic.h4
-rw-r--r--xf86drm.c3
-rw-r--r--xf86drmMode.c4
96 files changed, 3 insertions, 370 deletions
diff --git a/amdgpu/amdgpu_asic_id.c b/amdgpu/amdgpu_asic_id.c
index 62459c09..a5007ffc 100644
--- a/amdgpu/amdgpu_asic_id.c
+++ b/amdgpu/amdgpu_asic_id.c
@@ -22,10 +22,6 @@
22 * 22 *
23 */ 23 */
24 24
25#ifdef HAVE_CONFIG_H
26#include "config.h"
27#endif
28
29#include <ctype.h> 25#include <ctype.h>
30#include <stdio.h> 26#include <stdio.h>
31#include <stdlib.h> 27#include <stdlib.h>
diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c
index 3853fd03..cb255cb0 100644
--- a/amdgpu/amdgpu_bo.c
+++ b/amdgpu/amdgpu_bo.c
@@ -22,10 +22,6 @@
22 * 22 *
23 */ 23 */
24 24
25#ifdef HAVE_CONFIG_H
26#include "config.h"
27#endif
28
29#include <stdlib.h> 25#include <stdlib.h>
30#include <stdio.h> 26#include <stdio.h>
31#include <stdint.h> 27#include <stdint.h>
diff --git a/amdgpu/amdgpu_cs.c b/amdgpu/amdgpu_cs.c
index 4ac9bac7..3c9be6c2 100644
--- a/amdgpu/amdgpu_cs.c
+++ b/amdgpu/amdgpu_cs.c
@@ -21,10 +21,6 @@
21 * 21 *
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdlib.h> 24#include <stdlib.h>
29#include <stdio.h> 25#include <stdio.h>
30#include <string.h> 26#include <string.h>
diff --git a/amdgpu/amdgpu_device.c b/amdgpu/amdgpu_device.c
index fb2cfb57..d81efcf8 100644
--- a/amdgpu/amdgpu_device.c
+++ b/amdgpu/amdgpu_device.c
@@ -28,10 +28,6 @@
28 * 28 *
29 */ 29 */
30 30
31#ifdef HAVE_CONFIG_H
32#include "config.h"
33#endif
34
35#include <sys/stat.h> 31#include <sys/stat.h>
36#include <errno.h> 32#include <errno.h>
37#include <string.h> 33#include <string.h>
diff --git a/amdgpu/amdgpu_gpu_info.c b/amdgpu/amdgpu_gpu_info.c
index 1efffc6f..b68e1c4f 100644
--- a/amdgpu/amdgpu_gpu_info.c
+++ b/amdgpu/amdgpu_gpu_info.c
@@ -22,10 +22,6 @@
22 * 22 *
23 */ 23 */
24 24
25#ifdef HAVE_CONFIG_H
26#include "config.h"
27#endif
28
29#include <errno.h> 25#include <errno.h>
30#include <string.h> 26#include <string.h>
31 27
diff --git a/amdgpu/amdgpu_internal.h b/amdgpu/amdgpu_internal.h
index aeb5d651..99b8ce0b 100644
--- a/amdgpu/amdgpu_internal.h
+++ b/amdgpu/amdgpu_internal.h
@@ -25,10 +25,6 @@
25#ifndef _AMDGPU_INTERNAL_H_ 25#ifndef _AMDGPU_INTERNAL_H_
26#define _AMDGPU_INTERNAL_H_ 26#define _AMDGPU_INTERNAL_H_
27 27
28#ifdef HAVE_CONFIG_H
29#include "config.h"
30#endif
31
32#include <assert.h> 28#include <assert.h>
33#include <pthread.h> 29#include <pthread.h>
34 30
diff --git a/amdgpu/amdgpu_vamgr.c b/amdgpu/amdgpu_vamgr.c
index ac1202de..1de9f952 100644
--- a/amdgpu/amdgpu_vamgr.c
+++ b/amdgpu/amdgpu_vamgr.c
@@ -21,10 +21,6 @@
21 * 21 *
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdlib.h> 24#include <stdlib.h>
29#include <string.h> 25#include <string.h>
30#include <errno.h> 26#include <errno.h>
diff --git a/amdgpu/amdgpu_vm.c b/amdgpu/amdgpu_vm.c
index 5ba7c082..da9d07f8 100644
--- a/amdgpu/amdgpu_vm.c
+++ b/amdgpu/amdgpu_vm.c
@@ -21,10 +21,6 @@
21 * 21 *
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include "amdgpu.h" 24#include "amdgpu.h"
29#include "amdgpu_drm.h" 25#include "amdgpu_drm.h"
30#include "xf86drm.h" 26#include "xf86drm.h"
diff --git a/amdgpu/util_hash.c b/amdgpu/util_hash.c
index 87cb671b..7e590419 100644
--- a/amdgpu/util_hash.c
+++ b/amdgpu/util_hash.c
@@ -30,10 +30,6 @@
30 * Zack Rusin <zackr@vmware.com> 30 * Zack Rusin <zackr@vmware.com>
31 */ 31 */
32 32
33#ifdef HAVE_CONFIG_H
34#include "config.h"
35#endif
36
37#include "util_hash.h" 33#include "util_hash.h"
38 34
39#include <stdlib.h> 35#include <stdlib.h>
diff --git a/amdgpu/util_hash.h b/amdgpu/util_hash.h
index 01a4779b..6eed1569 100644
--- a/amdgpu/util_hash.h
+++ b/amdgpu/util_hash.h
@@ -44,10 +44,6 @@
44#ifndef UTIL_HASH_H 44#ifndef UTIL_HASH_H
45#define UTIL_HASH_H 45#define UTIL_HASH_H
46 46
47#ifdef HAVE_CONFIG_H
48#include "config.h"
49#endif
50
51#include <stdbool.h> 47#include <stdbool.h>
52 48
53#include "libdrm_macros.h" 49#include "libdrm_macros.h"
diff --git a/amdgpu/util_hash_table.c b/amdgpu/util_hash_table.c
index fa7f6eab..89a8bf9b 100644
--- a/amdgpu/util_hash_table.c
+++ b/amdgpu/util_hash_table.c
@@ -38,10 +38,6 @@
38 */ 38 */
39 39
40 40
41#ifdef HAVE_CONFIG_H
42#include "config.h"
43#endif
44
45#include "util_hash_table.h" 41#include "util_hash_table.h"
46#include "util_hash.h" 42#include "util_hash.h"
47 43
diff --git a/amdgpu/util_hash_table.h b/amdgpu/util_hash_table.h
index e0001289..5e295a81 100644
--- a/amdgpu/util_hash_table.h
+++ b/amdgpu/util_hash_table.h
@@ -34,10 +34,6 @@
34#ifndef U_HASH_TABLE_H_ 34#ifndef U_HASH_TABLE_H_
35#define U_HASH_TABLE_H_ 35#define U_HASH_TABLE_H_
36 36
37#ifdef HAVE_CONFIG_H
38#include "config.h"
39#endif
40
41#include "libdrm_macros.h" 37#include "libdrm_macros.h"
42 38
43/** 39/**
diff --git a/configure.ac b/configure.ac
index 0e36336c..619af497 100644
--- a/configure.ac
+++ b/configure.ac
@@ -541,6 +541,8 @@ else
541 AC_DEFINE(HAVE_VISIBILITY, 0) 541 AC_DEFINE(HAVE_VISIBILITY, 0)
542fi 542fi
543 543
544CFLAGS="$CFLAGS -include config.h"
545
544AC_SUBST(WARN_CFLAGS) 546AC_SUBST(WARN_CFLAGS)
545AC_CONFIG_FILES([ 547AC_CONFIG_FILES([
546 Makefile 548 Makefile
diff --git a/etnaviv/etnaviv_bo.c b/etnaviv/etnaviv_bo.c
index 78b9cd27..32f7b348 100644
--- a/etnaviv/etnaviv_bo.c
+++ b/etnaviv/etnaviv_bo.c
@@ -24,10 +24,6 @@
24 * Christian Gmeiner <christian.gmeiner@gmail.com> 24 * Christian Gmeiner <christian.gmeiner@gmail.com>
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28# include <config.h>
29#endif
30
31#include "etnaviv_priv.h" 27#include "etnaviv_priv.h"
32#include "etnaviv_drmif.h" 28#include "etnaviv_drmif.h"
33 29
diff --git a/etnaviv/etnaviv_bo_cache.c b/etnaviv/etnaviv_bo_cache.c
index 6208230d..c81de262 100644
--- a/etnaviv/etnaviv_bo_cache.c
+++ b/etnaviv/etnaviv_bo_cache.c
@@ -24,10 +24,6 @@
24 * Christian Gmeiner <christian.gmeiner@gmail.com> 24 * Christian Gmeiner <christian.gmeiner@gmail.com>
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28# include <config.h>
29#endif
30
31#include "etnaviv_priv.h" 27#include "etnaviv_priv.h"
32#include "etnaviv_drmif.h" 28#include "etnaviv_drmif.h"
33 29
diff --git a/etnaviv/etnaviv_cmd_stream.c b/etnaviv/etnaviv_cmd_stream.c
index e8c58cd5..13730168 100644
--- a/etnaviv/etnaviv_cmd_stream.c
+++ b/etnaviv/etnaviv_cmd_stream.c
@@ -24,10 +24,6 @@
24 * Christian Gmeiner <christian.gmeiner@gmail.com> 24 * Christian Gmeiner <christian.gmeiner@gmail.com>
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28# include <config.h>
29#endif
30
31#include <assert.h> 27#include <assert.h>
32 28
33#include "etnaviv_drmif.h" 29#include "etnaviv_drmif.h"
diff --git a/etnaviv/etnaviv_device.c b/etnaviv/etnaviv_device.c
index 3ce92030..d83e8d3e 100644
--- a/etnaviv/etnaviv_device.c
+++ b/etnaviv/etnaviv_device.c
@@ -24,10 +24,6 @@
24 * Christian Gmeiner <christian.gmeiner@gmail.com> 24 * Christian Gmeiner <christian.gmeiner@gmail.com>
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28#include "config.h"
29#endif
30
31#include <stdlib.h> 27#include <stdlib.h>
32#include <linux/stddef.h> 28#include <linux/stddef.h>
33#include <linux/types.h> 29#include <linux/types.h>
diff --git a/etnaviv/etnaviv_gpu.c b/etnaviv/etnaviv_gpu.c
index bc355e8f..f7efa028 100644
--- a/etnaviv/etnaviv_gpu.c
+++ b/etnaviv/etnaviv_gpu.c
@@ -24,10 +24,6 @@
24 * Christian Gmeiner <christian.gmeiner@gmail.com> 24 * Christian Gmeiner <christian.gmeiner@gmail.com>
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28# include <config.h>
29#endif
30
31#include "etnaviv_priv.h" 27#include "etnaviv_priv.h"
32#include "etnaviv_drmif.h" 28#include "etnaviv_drmif.h"
33 29
diff --git a/etnaviv/etnaviv_perfmon.c b/etnaviv/etnaviv_perfmon.c
index aa5130a6..5f408a7b 100644
--- a/etnaviv/etnaviv_perfmon.c
+++ b/etnaviv/etnaviv_perfmon.c
@@ -25,10 +25,6 @@
25 * Christian Gmeiner <christian.gmeiner@gmail.com> 25 * Christian Gmeiner <christian.gmeiner@gmail.com>
26 */ 26 */
27 27
28#ifdef HAVE_CONFIG_H
29# include <config.h>
30#endif
31
32#include "etnaviv_priv.h" 28#include "etnaviv_priv.h"
33 29
34static int etna_perfmon_query_signals(struct etna_perfmon *pm, struct etna_perfmon_domain *dom) 30static int etna_perfmon_query_signals(struct etna_perfmon *pm, struct etna_perfmon_domain *dom)
diff --git a/etnaviv/etnaviv_pipe.c b/etnaviv/etnaviv_pipe.c
index 94c5d377..53954aa3 100644
--- a/etnaviv/etnaviv_pipe.c
+++ b/etnaviv/etnaviv_pipe.c
@@ -24,10 +24,6 @@
24 * Christian Gmeiner <christian.gmeiner@gmail.com> 24 * Christian Gmeiner <christian.gmeiner@gmail.com>
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28# include <config.h>
29#endif
30
31#include "etnaviv_priv.h" 27#include "etnaviv_priv.h"
32 28
33int etna_pipe_wait(struct etna_pipe *pipe, uint32_t timestamp, uint32_t ms) 29int etna_pipe_wait(struct etna_pipe *pipe, uint32_t timestamp, uint32_t ms)
diff --git a/exynos/exynos_drm.c b/exynos/exynos_drm.c
index f6204f1c..e1afef65 100644
--- a/exynos/exynos_drm.c
+++ b/exynos/exynos_drm.c
@@ -24,10 +24,6 @@
24 * Inki Dae <inki.dae@samsung.com> 24 * Inki Dae <inki.dae@samsung.com>
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28#include "config.h"
29#endif
30
31#include <stdlib.h> 27#include <stdlib.h>
32#include <stdio.h> 28#include <stdio.h>
33#include <string.h> 29#include <string.h>
diff --git a/exynos/exynos_fimg2d.c b/exynos/exynos_fimg2d.c
index 5658a48e..bca884b9 100644
--- a/exynos/exynos_fimg2d.c
+++ b/exynos/exynos_fimg2d.c
@@ -23,10 +23,6 @@
23 * OTHER DEALINGS IN THE SOFTWARE. 23 * OTHER DEALINGS IN THE SOFTWARE.
24 */ 24 */
25 25
26#ifdef HAVE_CONFIG_H
27#include "config.h"
28#endif
29
30#include <stdlib.h> 26#include <stdlib.h>
31#include <stdio.h> 27#include <stdio.h>
32#include <string.h> 28#include <string.h>
diff --git a/freedreno/freedreno_bo.c b/freedreno/freedreno_bo.c
index 331b8227..34c285fb 100644
--- a/freedreno/freedreno_bo.c
+++ b/freedreno/freedreno_bo.c
@@ -26,10 +26,6 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
33#include "freedreno_drmif.h" 29#include "freedreno_drmif.h"
34#include "freedreno_priv.h" 30#include "freedreno_priv.h"
35 31
diff --git a/freedreno/freedreno_bo_cache.c b/freedreno/freedreno_bo_cache.c
index d922f3a9..3b737159 100644
--- a/freedreno/freedreno_bo_cache.c
+++ b/freedreno/freedreno_bo_cache.c
@@ -26,10 +26,6 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
33#include "freedreno_drmif.h" 29#include "freedreno_drmif.h"
34#include "freedreno_priv.h" 30#include "freedreno_priv.h"
35 31
diff --git a/freedreno/freedreno_device.c b/freedreno/freedreno_device.c
index a0334bf4..0b42561a 100644
--- a/freedreno/freedreno_device.c
+++ b/freedreno/freedreno_device.c
@@ -26,10 +26,6 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
33#include <sys/types.h> 29#include <sys/types.h>
34#include <sys/stat.h> 30#include <sys/stat.h>
35#include <unistd.h> 31#include <unistd.h>
diff --git a/freedreno/freedreno_pipe.c b/freedreno/freedreno_pipe.c
index 1540474b..77b160e7 100644
--- a/freedreno/freedreno_pipe.c
+++ b/freedreno/freedreno_pipe.c
@@ -26,10 +26,6 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
33#include "freedreno_drmif.h" 29#include "freedreno_drmif.h"
34#include "freedreno_priv.h" 30#include "freedreno_priv.h"
35 31
diff --git a/freedreno/freedreno_priv.h b/freedreno/freedreno_priv.h
index a0957fad..6c9e509f 100644
--- a/freedreno/freedreno_priv.h
+++ b/freedreno/freedreno_priv.h
@@ -29,10 +29,6 @@
29#ifndef FREEDRENO_PRIV_H_ 29#ifndef FREEDRENO_PRIV_H_
30#define FREEDRENO_PRIV_H_ 30#define FREEDRENO_PRIV_H_
31 31
32#ifdef HAVE_CONFIG_H
33#include "config.h"
34#endif
35
36#include <stdlib.h> 32#include <stdlib.h>
37#include <errno.h> 33#include <errno.h>
38#include <string.h> 34#include <string.h>
diff --git a/freedreno/freedreno_ringbuffer.c b/freedreno/freedreno_ringbuffer.c
index 7310f1fd..3834b51b 100644
--- a/freedreno/freedreno_ringbuffer.c
+++ b/freedreno/freedreno_ringbuffer.c
@@ -26,10 +26,6 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
33#include <assert.h> 29#include <assert.h>
34 30
35#include "freedreno_drmif.h" 31#include "freedreno_drmif.h"
diff --git a/freedreno/kgsl/kgsl_bo.c b/freedreno/kgsl/kgsl_bo.c
index ab3485e3..c6d2d499 100644
--- a/freedreno/kgsl/kgsl_bo.c
+++ b/freedreno/kgsl/kgsl_bo.c
@@ -26,10 +26,6 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
33#include "kgsl_priv.h" 29#include "kgsl_priv.h"
34 30
35#include <linux/fb.h> 31#include <linux/fb.h>
diff --git a/freedreno/kgsl/kgsl_device.c b/freedreno/kgsl/kgsl_device.c
index 958e8a72..914f3412 100644
--- a/freedreno/kgsl/kgsl_device.c
+++ b/freedreno/kgsl/kgsl_device.c
@@ -26,10 +26,6 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
33#include <sys/types.h> 29#include <sys/types.h>
34#include <sys/stat.h> 30#include <sys/stat.h>
35#include <unistd.h> 31#include <unistd.h>
diff --git a/freedreno/kgsl/kgsl_pipe.c b/freedreno/kgsl/kgsl_pipe.c
index 80bd1313..0a8b6586 100644
--- a/freedreno/kgsl/kgsl_pipe.c
+++ b/freedreno/kgsl/kgsl_pipe.c
@@ -26,10 +26,6 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
33#include "kgsl_priv.h" 29#include "kgsl_priv.h"
34 30
35 31
diff --git a/freedreno/kgsl/kgsl_ringbuffer.c b/freedreno/kgsl/kgsl_ringbuffer.c
index f09c433b..a756deda 100644
--- a/freedreno/kgsl/kgsl_ringbuffer.c
+++ b/freedreno/kgsl/kgsl_ringbuffer.c
@@ -26,10 +26,6 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
33#include <assert.h> 29#include <assert.h>
34 30
35#include "freedreno_ringbuffer.h" 31#include "freedreno_ringbuffer.h"
diff --git a/freedreno/msm/msm_bo.c b/freedreno/msm/msm_bo.c
index 281c5aa7..8b3d0bcb 100644
--- a/freedreno/msm/msm_bo.c
+++ b/freedreno/msm/msm_bo.c
@@ -26,10 +26,6 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
33#include "msm_priv.h" 29#include "msm_priv.h"
34 30
35static int bo_allocate(struct msm_bo *msm_bo) 31static int bo_allocate(struct msm_bo *msm_bo)
diff --git a/freedreno/msm/msm_device.c b/freedreno/msm/msm_device.c
index c454938d..7bb57677 100644
--- a/freedreno/msm/msm_device.c
+++ b/freedreno/msm/msm_device.c
@@ -26,10 +26,6 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
33#include <sys/types.h> 29#include <sys/types.h>
34#include <sys/stat.h> 30#include <sys/stat.h>
35#include <unistd.h> 31#include <unistd.h>
diff --git a/freedreno/msm/msm_pipe.c b/freedreno/msm/msm_pipe.c
index 12e4be59..f28778ef 100644
--- a/freedreno/msm/msm_pipe.c
+++ b/freedreno/msm/msm_pipe.c
@@ -26,10 +26,6 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
33#include "msm_priv.h" 29#include "msm_priv.h"
34 30
35static int query_param(struct fd_pipe *pipe, uint32_t param, 31static int query_param(struct fd_pipe *pipe, uint32_t param,
diff --git a/freedreno/msm/msm_ringbuffer.c b/freedreno/msm/msm_ringbuffer.c
index c75bb169..a87e1b9a 100644
--- a/freedreno/msm/msm_ringbuffer.c
+++ b/freedreno/msm/msm_ringbuffer.c
@@ -26,10 +26,6 @@
26 * Rob Clark <robclark@freedesktop.org> 26 * Rob Clark <robclark@freedesktop.org>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30# include <config.h>
31#endif
32
33#include <assert.h> 29#include <assert.h>
34#include <inttypes.h> 30#include <inttypes.h>
35 31
diff --git a/intel/intel_bufmgr.c b/intel/intel_bufmgr.c
index a2853400..bede0a21 100644
--- a/intel/intel_bufmgr.c
+++ b/intel/intel_bufmgr.c
@@ -25,10 +25,6 @@
25 * 25 *
26 */ 26 */
27 27
28#ifdef HAVE_CONFIG_H
29#include "config.h"
30#endif
31
32#include <string.h> 28#include <string.h>
33#include <stdlib.h> 29#include <stdlib.h>
34#include <stdint.h> 30#include <stdint.h>
diff --git a/intel/intel_bufmgr_fake.c b/intel/intel_bufmgr_fake.c
index 641df6a1..3b24b81b 100644
--- a/intel/intel_bufmgr_fake.c
+++ b/intel/intel_bufmgr_fake.c
@@ -34,10 +34,6 @@
34 * the bugs in the old texture manager. 34 * the bugs in the old texture manager.
35 */ 35 */
36 36
37#ifdef HAVE_CONFIG_H
38#include "config.h"
39#endif
40
41#include <stdlib.h> 37#include <stdlib.h>
42#include <string.h> 38#include <string.h>
43#include <assert.h> 39#include <assert.h>
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 386da30e..5c47a46f 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -34,10 +34,6 @@
34 * Dave Airlie <airlied@linux.ie> 34 * Dave Airlie <airlied@linux.ie>
35 */ 35 */
36 36
37#ifdef HAVE_CONFIG_H
38#include "config.h"
39#endif
40
41#include <xf86drm.h> 37#include <xf86drm.h>
42#include <xf86atomic.h> 38#include <xf86atomic.h>
43#include <fcntl.h> 39#include <fcntl.h>
diff --git a/intel/intel_decode.c b/intel/intel_decode.c
index 3a81500f..bc7b04b8 100644
--- a/intel/intel_decode.c
+++ b/intel/intel_decode.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <assert.h> 24#include <assert.h>
29#include <stdint.h> 25#include <stdint.h>
30#include <stdlib.h> 26#include <stdlib.h>
diff --git a/intel/mm.c b/intel/mm.c
index 954e9dcb..79d8719d 100644
--- a/intel/mm.c
+++ b/intel/mm.c
@@ -22,10 +22,6 @@
22 * 22 *
23 */ 23 */
24 24
25#ifdef HAVE_CONFIG_H
26#include "config.h"
27#endif
28
29#include <stdlib.h> 25#include <stdlib.h>
30#include <assert.h> 26#include <assert.h>
31 27
diff --git a/intel/mm.h b/intel/mm.h
index 8d83743f..1b0f84fc 100644
--- a/intel/mm.h
+++ b/intel/mm.h
@@ -29,10 +29,6 @@
29#ifndef MM_H 29#ifndef MM_H
30#define MM_H 30#define MM_H
31 31
32#ifdef HAVE_CONFIG_H
33#include "config.h"
34#endif
35
36#include "libdrm_macros.h" 32#include "libdrm_macros.h"
37 33
38struct mem_block { 34struct mem_block {
diff --git a/intel/test_decode.c b/intel/test_decode.c
index 68f777b0..b9f5b927 100644
--- a/intel/test_decode.c
+++ b/intel/test_decode.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <string.h> 24#include <string.h>
29#include <stdlib.h> 25#include <stdlib.h>
30#include <stdio.h> 26#include <stdio.h>
diff --git a/libkms/api.c b/libkms/api.c
index 354d8a2e..22dd32d7 100644
--- a/libkms/api.c
+++ b/libkms/api.c
@@ -26,10 +26,6 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28 28
29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
32
33#include <errno.h> 29#include <errno.h>
34#include <stdlib.h> 30#include <stdlib.h>
35#include <string.h> 31#include <string.h>
diff --git a/libkms/dumb.c b/libkms/dumb.c
index b95a072c..17efc10a 100644
--- a/libkms/dumb.c
+++ b/libkms/dumb.c
@@ -26,10 +26,6 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28 28
29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
32
33#include <errno.h> 29#include <errno.h>
34#include <stdio.h> 30#include <stdio.h>
35#include <stdlib.h> 31#include <stdlib.h>
diff --git a/libkms/exynos.c b/libkms/exynos.c
index c20b6b05..ef64a668 100644
--- a/libkms/exynos.c
+++ b/libkms/exynos.c
@@ -25,10 +25,6 @@
25 * SOFTWARE. 25 * SOFTWARE.
26 */ 26 */
27 27
28#ifdef HAVE_CONFIG_H
29#include "config.h"
30#endif
31
32#include <errno.h> 28#include <errno.h>
33#include <stdio.h> 29#include <stdio.h>
34#include <stdlib.h> 30#include <stdlib.h>
diff --git a/libkms/intel.c b/libkms/intel.c
index 3d8ca055..859e7a0f 100644
--- a/libkms/intel.c
+++ b/libkms/intel.c
@@ -26,10 +26,6 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28 28
29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
32
33#include <errno.h> 29#include <errno.h>
34#include <stdio.h> 30#include <stdio.h>
35#include <stdlib.h> 31#include <stdlib.h>
diff --git a/libkms/internal.h b/libkms/internal.h
index 905f5b17..8b386db6 100644
--- a/libkms/internal.h
+++ b/libkms/internal.h
@@ -29,10 +29,6 @@
29#ifndef INTERNAL_H_ 29#ifndef INTERNAL_H_
30#define INTERNAL_H_ 30#define INTERNAL_H_
31 31
32#ifdef HAVE_CONFIG_H
33#include "config.h"
34#endif
35
36#include "libdrm_macros.h" 32#include "libdrm_macros.h"
37#include "libkms.h" 33#include "libkms.h"
38 34
diff --git a/libkms/linux.c b/libkms/linux.c
index 1431eb10..56205054 100644
--- a/libkms/linux.c
+++ b/libkms/linux.c
@@ -29,10 +29,6 @@
29 * going from fd to pci id via fstat and udev. 29 * going from fd to pci id via fstat and udev.
30 */ 30 */
31 31
32
33#ifdef HAVE_CONFIG_H
34#include "config.h"
35#endif
36#include <errno.h> 32#include <errno.h>
37#include <stdio.h> 33#include <stdio.h>
38#include <stdlib.h> 34#include <stdlib.h>
diff --git a/libkms/nouveau.c b/libkms/nouveau.c
index d10e0fdb..7fe23db3 100644
--- a/libkms/nouveau.c
+++ b/libkms/nouveau.c
@@ -26,10 +26,6 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28 28
29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
32
33#include <errno.h> 29#include <errno.h>
34#include <stdio.h> 30#include <stdio.h>
35#include <stdlib.h> 31#include <stdlib.h>
diff --git a/libkms/radeon.c b/libkms/radeon.c
index aaeeaf31..2cb2b11f 100644
--- a/libkms/radeon.c
+++ b/libkms/radeon.c
@@ -26,10 +26,6 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28 28
29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
32
33#include <errno.h> 29#include <errno.h>
34#include <stdio.h> 30#include <stdio.h>
35#include <stdlib.h> 31#include <stdlib.h>
diff --git a/libkms/vmwgfx.c b/libkms/vmwgfx.c
index 6a24fd4d..f0e40be7 100644
--- a/libkms/vmwgfx.c
+++ b/libkms/vmwgfx.c
@@ -26,10 +26,6 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28 28
29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
32
33#include <errno.h> 29#include <errno.h>
34#include <stdlib.h> 30#include <stdlib.h>
35#include <string.h> 31#include <string.h>
diff --git a/meson.build b/meson.build
index 100a59fa..74a541e8 100644
--- a/meson.build
+++ b/meson.build
@@ -280,7 +280,7 @@ config_file = configure_file(
280 configuration : config, 280 configuration : config,
281 output : 'config.h', 281 output : 'config.h',
282) 282)
283add_project_arguments('-DHAVE_CONFIG_H', language : 'c') 283add_project_arguments('-include', 'config.h', language : 'c')
284 284
285inc_root = include_directories('.') 285inc_root = include_directories('.')
286inc_drm = include_directories('include/drm') 286inc_drm = include_directories('include/drm')
diff --git a/nouveau/abi16.c b/nouveau/abi16.c
index ee38c0cb..ba2501ea 100644
--- a/nouveau/abi16.c
+++ b/nouveau/abi16.c
@@ -22,10 +22,6 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#ifdef HAVE_CONFIG_H
26# include <config.h>
27#endif
28
29#include <stdlib.h> 25#include <stdlib.h>
30#include <stdint.h> 26#include <stdint.h>
31#include <stddef.h> 27#include <stddef.h>
diff --git a/nouveau/bufctx.c b/nouveau/bufctx.c
index 4f76e5df..67b7570e 100644
--- a/nouveau/bufctx.c
+++ b/nouveau/bufctx.c
@@ -22,10 +22,6 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#ifdef HAVE_CONFIG_H
26#include <config.h>
27#endif
28
29#include <stdio.h> 25#include <stdio.h>
30#include <stdlib.h> 26#include <stdlib.h>
31#include <stdint.h> 27#include <stdint.h>
diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c
index e113a8fe..55593517 100644
--- a/nouveau/nouveau.c
+++ b/nouveau/nouveau.c
@@ -22,10 +22,6 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#ifdef HAVE_CONFIG_H
26#include <config.h>
27#endif
28
29#include <stdio.h> 25#include <stdio.h>
30#include <stdlib.h> 26#include <stdlib.h>
31#include <stdint.h> 27#include <stdint.h>
diff --git a/nouveau/pushbuf.c b/nouveau/pushbuf.c
index 035e3019..445c966e 100644
--- a/nouveau/pushbuf.c
+++ b/nouveau/pushbuf.c
@@ -22,10 +22,6 @@
22 * Authors: Ben Skeggs 22 * Authors: Ben Skeggs
23 */ 23 */
24 24
25#ifdef HAVE_CONFIG_H
26#include <config.h>
27#endif
28
29#include <stdio.h> 25#include <stdio.h>
30#include <stdlib.h> 26#include <stdlib.h>
31#include <stdint.h> 27#include <stdint.h>
diff --git a/omap/omap_drm.c b/omap/omap_drm.c
index 08ba64eb..417d522c 100644
--- a/omap/omap_drm.c
+++ b/omap/omap_drm.c
@@ -26,10 +26,6 @@
26 * Rob Clark <rob@ti.com> 26 * Rob Clark <rob@ti.com>
27 */ 27 */
28 28
29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
32
33#include <stdlib.h> 29#include <stdlib.h>
34#include <linux/stddef.h> 30#include <linux/stddef.h>
35#include <linux/types.h> 31#include <linux/types.h>
diff --git a/radeon/radeon_bo.c b/radeon/radeon_bo.c
index 447f9280..821807bc 100644
--- a/radeon/radeon_bo.c
+++ b/radeon/radeon_bo.c
@@ -29,9 +29,6 @@
29 * Dave Airlie 29 * Dave Airlie
30 * Jérôme Glisse <glisse@freedesktop.org> 30 * Jérôme Glisse <glisse@freedesktop.org>
31 */ 31 */
32#ifdef HAVE_CONFIG_H
33#include <config.h>
34#endif
35#include <libdrm_macros.h> 32#include <libdrm_macros.h>
36#include <radeon_bo.h> 33#include <radeon_bo.h>
37#include <radeon_bo_int.h> 34#include <radeon_bo_int.h>
diff --git a/radeon/radeon_bo_gem.c b/radeon/radeon_bo_gem.c
index fbd453d9..774b26e4 100644
--- a/radeon/radeon_bo_gem.c
+++ b/radeon/radeon_bo_gem.c
@@ -29,9 +29,6 @@
29 * Dave Airlie 29 * Dave Airlie
30 * Jérôme Glisse <glisse@freedesktop.org> 30 * Jérôme Glisse <glisse@freedesktop.org>
31 */ 31 */
32#ifdef HAVE_CONFIG_H
33#include <config.h>
34#endif
35#include <stdio.h> 32#include <stdio.h>
36#include <stdint.h> 33#include <stdint.h>
37#include <stdlib.h> 34#include <stdlib.h>
diff --git a/radeon/radeon_cs.c b/radeon/radeon_cs.c
index dffb869f..eb7859e5 100644
--- a/radeon/radeon_cs.c
+++ b/radeon/radeon_cs.c
@@ -1,6 +1,3 @@
1#ifdef HAVE_CONFIG_H
2#include <config.h>
3#endif
4#include "libdrm_macros.h" 1#include "libdrm_macros.h"
5#include <stdio.h> 2#include <stdio.h>
6#include "radeon_cs.h" 3#include "radeon_cs.h"
diff --git a/radeon/radeon_cs_gem.c b/radeon/radeon_cs_gem.c
index f3dccb6c..4d5fc13a 100644
--- a/radeon/radeon_cs_gem.c
+++ b/radeon/radeon_cs_gem.c
@@ -29,9 +29,6 @@
29 * Nicolai Haehnle <prefect_@gmx.net> 29 * Nicolai Haehnle <prefect_@gmx.net>
30 * Jérôme Glisse <glisse@freedesktop.org> 30 * Jérôme Glisse <glisse@freedesktop.org>
31 */ 31 */
32#ifdef HAVE_CONFIG_H
33#include "config.h"
34#endif
35#include <assert.h> 32#include <assert.h>
36#include <errno.h> 33#include <errno.h>
37#include <stdlib.h> 34#include <stdlib.h>
diff --git a/radeon/radeon_cs_space.c b/radeon/radeon_cs_space.c
index 69287be5..8531c345 100644
--- a/radeon/radeon_cs_space.c
+++ b/radeon/radeon_cs_space.c
@@ -25,9 +25,6 @@
25 */ 25 */
26/* 26/*
27 */ 27 */
28#ifdef HAVE_CONFIG_H
29#include <config.h>
30#endif
31#include <assert.h> 28#include <assert.h>
32#include <errno.h> 29#include <errno.h>
33#include <stdlib.h> 30#include <stdlib.h>
diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c
index 04df77d6..3cafcfcb 100644
--- a/radeon/radeon_surface.c
+++ b/radeon/radeon_surface.c
@@ -26,9 +26,6 @@
26 * Authors: 26 * Authors:
27 * Jérôme Glisse <jglisse@redhat.com> 27 * Jérôme Glisse <jglisse@redhat.com>
28 */ 28 */
29#ifdef HAVE_CONFIG_H
30#include <config.h>
31#endif
32#include <stdbool.h> 29#include <stdbool.h>
33#include <assert.h> 30#include <assert.h>
34#include <errno.h> 31#include <errno.h>
diff --git a/tegra/tegra.c b/tegra/tegra.c
index f7dc89ad..1d7268e5 100644
--- a/tegra/tegra.c
+++ b/tegra/tegra.c
@@ -22,10 +22,6 @@
22 * OTHER DEALINGS IN THE SOFTWARE. 22 * OTHER DEALINGS IN THE SOFTWARE.
23 */ 23 */
24 24
25#ifdef HAVE_CONFIG_H
26# include "config.h"
27#endif
28
29#include <errno.h> 25#include <errno.h>
30#include <fcntl.h> 26#include <fcntl.h>
31#include <string.h> 27#include <string.h>
diff --git a/tests/amdgpu/amdgpu_test.c b/tests/amdgpu/amdgpu_test.c
index e49f4a6c..96fcd687 100644
--- a/tests/amdgpu/amdgpu_test.c
+++ b/tests/amdgpu/amdgpu_test.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <string.h> 24#include <string.h>
29#include <stdio.h> 25#include <stdio.h>
30#include <stdlib.h> 26#include <stdlib.h>
diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c
index 0ea010a8..1adbddd9 100644
--- a/tests/amdgpu/basic_tests.c
+++ b/tests/amdgpu/basic_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29#include <stdlib.h> 25#include <stdlib.h>
30#include <unistd.h> 26#include <unistd.h>
diff --git a/tests/amdgpu/bo_tests.c b/tests/amdgpu/bo_tests.c
index 24698bcb..9d4da4af 100644
--- a/tests/amdgpu/bo_tests.c
+++ b/tests/amdgpu/bo_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29 25
30#include "CUnit/Basic.h" 26#include "CUnit/Basic.h"
diff --git a/tests/amdgpu/cs_tests.c b/tests/amdgpu/cs_tests.c
index a5361cd5..7ad0f0dc 100644
--- a/tests/amdgpu/cs_tests.c
+++ b/tests/amdgpu/cs_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29 25
30#include "CUnit/Basic.h" 26#include "CUnit/Basic.h"
diff --git a/tests/amdgpu/deadlock_tests.c b/tests/amdgpu/deadlock_tests.c
index 96c99c96..1eb5761a 100644
--- a/tests/amdgpu/deadlock_tests.c
+++ b/tests/amdgpu/deadlock_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29#include <stdlib.h> 25#include <stdlib.h>
30#include <unistd.h> 26#include <unistd.h>
diff --git a/tests/amdgpu/uvd_enc_tests.c b/tests/amdgpu/uvd_enc_tests.c
index 0377c1a5..b4251bcf 100644
--- a/tests/amdgpu/uvd_enc_tests.c
+++ b/tests/amdgpu/uvd_enc_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29#include <inttypes.h> 25#include <inttypes.h>
30 26
diff --git a/tests/amdgpu/vce_tests.c b/tests/amdgpu/vce_tests.c
index 75821bbb..25c0b1fb 100644
--- a/tests/amdgpu/vce_tests.c
+++ b/tests/amdgpu/vce_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29#include <inttypes.h> 25#include <inttypes.h>
30 26
diff --git a/tests/amdgpu/vcn_tests.c b/tests/amdgpu/vcn_tests.c
index 2eb8c434..d9f05af8 100644
--- a/tests/amdgpu/vcn_tests.c
+++ b/tests/amdgpu/vcn_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29#include <inttypes.h> 25#include <inttypes.h>
30 26
diff --git a/tests/amdgpu/vm_tests.c b/tests/amdgpu/vm_tests.c
index 502a9405..7b6dc5d6 100644
--- a/tests/amdgpu/vm_tests.c
+++ b/tests/amdgpu/vm_tests.c
@@ -21,10 +21,6 @@
21 * 21 *
22*/ 22*/
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include "CUnit/Basic.h" 24#include "CUnit/Basic.h"
29 25
30#include "amdgpu_test.h" 26#include "amdgpu_test.h"
diff --git a/tests/etnaviv/etnaviv_2d_test.c b/tests/etnaviv/etnaviv_2d_test.c
index 10751c73..8dd77b66 100644
--- a/tests/etnaviv/etnaviv_2d_test.c
+++ b/tests/etnaviv/etnaviv_2d_test.c
@@ -24,10 +24,6 @@
24 * Christian Gmeiner <christian.gmeiner@gmail.com> 24 * Christian Gmeiner <christian.gmeiner@gmail.com>
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28# include "config.h"
29#endif
30
31#include <fcntl.h> 27#include <fcntl.h>
32#include <stdio.h> 28#include <stdio.h>
33#include <string.h> 29#include <string.h>
diff --git a/tests/etnaviv/etnaviv_bo_cache_test.c b/tests/etnaviv/etnaviv_bo_cache_test.c
index fb01f8d3..7fb06293 100644
--- a/tests/etnaviv/etnaviv_bo_cache_test.c
+++ b/tests/etnaviv/etnaviv_bo_cache_test.c
@@ -24,10 +24,6 @@
24 * Christian Gmeiner <christian.gmeiner@gmail.com> 24 * Christian Gmeiner <christian.gmeiner@gmail.com>
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28# include "config.h"
29#endif
30
31#undef NDEBUG 27#undef NDEBUG
32#include <assert.h> 28#include <assert.h>
33 29
diff --git a/tests/exynos/exynos_fimg2d_test.c b/tests/exynos/exynos_fimg2d_test.c
index dcb2e35a..99bb9233 100644
--- a/tests/exynos/exynos_fimg2d_test.c
+++ b/tests/exynos/exynos_fimg2d_test.c
@@ -23,10 +23,6 @@
23 * OTHER DEALINGS IN THE SOFTWARE. 23 * OTHER DEALINGS IN THE SOFTWARE.
24 */ 24 */
25 25
26#ifdef HAVE_CONFIG_H
27#include "config.h"
28#endif
29
30#include <stdlib.h> 26#include <stdlib.h>
31#include <stdio.h> 27#include <stdio.h>
32#include <string.h> 28#include <string.h>
diff --git a/tests/kms/kms-steal-crtc.c b/tests/kms/kms-steal-crtc.c
index 4b830d27..cd40758d 100644
--- a/tests/kms/kms-steal-crtc.c
+++ b/tests/kms/kms-steal-crtc.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <errno.h> 24#include <errno.h>
29#include <fcntl.h> 25#include <fcntl.h>
30#include <signal.h> 26#include <signal.h>
diff --git a/tests/kms/kms-universal-planes.c b/tests/kms/kms-universal-planes.c
index 89057bb5..2163c987 100644
--- a/tests/kms/kms-universal-planes.c
+++ b/tests/kms/kms-universal-planes.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <fcntl.h> 24#include <fcntl.h>
29#include <getopt.h> 25#include <getopt.h>
30#include <stdbool.h> 26#include <stdbool.h>
diff --git a/tests/kms/libkms-test-crtc.c b/tests/kms/libkms-test-crtc.c
index 3adb4903..2c28face 100644
--- a/tests/kms/libkms-test-crtc.c
+++ b/tests/kms/libkms-test-crtc.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include "libkms-test.h" 24#include "libkms-test.h"
29 25
30struct kms_crtc *kms_crtc_create(struct kms_device *device, uint32_t id) 26struct kms_crtc *kms_crtc_create(struct kms_device *device, uint32_t id)
diff --git a/tests/kms/libkms-test-device.c b/tests/kms/libkms-test-device.c
index 042ae05d..d3bb11ce 100644
--- a/tests/kms/libkms-test-device.c
+++ b/tests/kms/libkms-test-device.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <stdio.h> 24#include <stdio.h>
29#include <string.h> 25#include <string.h>
30#include <unistd.h> 26#include <unistd.h>
diff --git a/tests/kms/libkms-test-framebuffer.c b/tests/kms/libkms-test-framebuffer.c
index c9e5ad3c..9bb2d95b 100644
--- a/tests/kms/libkms-test-framebuffer.c
+++ b/tests/kms/libkms-test-framebuffer.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <errno.h> 24#include <errno.h>
29#include <string.h> 25#include <string.h>
30 26
diff --git a/tests/kms/libkms-test-plane.c b/tests/kms/libkms-test-plane.c
index 8eb78af1..6c40a3c9 100644
--- a/tests/kms/libkms-test-plane.c
+++ b/tests/kms/libkms-test-plane.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <errno.h> 24#include <errno.h>
29#include <string.h> 25#include <string.h>
30 26
diff --git a/tests/kms/libkms-test-screen.c b/tests/kms/libkms-test-screen.c
index 33690222..bbe972a0 100644
--- a/tests/kms/libkms-test-screen.c
+++ b/tests/kms/libkms-test-screen.c
@@ -21,10 +21,6 @@
21 * IN THE SOFTWARE. 21 * IN THE SOFTWARE.
22 */ 22 */
23 23
24#ifdef HAVE_CONFIG_H
25#include "config.h"
26#endif
27
28#include <errno.h> 24#include <errno.h>
29#include <string.h> 25#include <string.h>
30 26
diff --git a/tests/modetest/buffers.c b/tests/modetest/buffers.c
index 4fd310b9..9b635c0c 100644
--- a/tests/modetest/buffers.c
+++ b/tests/modetest/buffers.c
@@ -24,10 +24,6 @@
24 * IN THE SOFTWARE. 24 * IN THE SOFTWARE.
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28#include "config.h"
29#endif
30
31#include <assert.h> 27#include <assert.h>
32#include <errno.h> 28#include <errno.h>
33#include <stdio.h> 29#include <stdio.h>
diff --git a/tests/modetest/cursor.c b/tests/modetest/cursor.c
index 6de82a4a..829bced1 100644
--- a/tests/modetest/cursor.c
+++ b/tests/modetest/cursor.c
@@ -22,10 +22,6 @@
22 * IN THE SOFTWARE. 22 * IN THE SOFTWARE.
23 */ 23 */
24 24
25#ifdef HAVE_CONFIG_H
26#include "config.h"
27#endif
28
29#include <assert.h> 25#include <assert.h>
30#include <errno.h> 26#include <errno.h>
31#include <stdio.h> 27#include <stdio.h>
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index fb9f15fc..62957d84 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -38,10 +38,6 @@
38 * the mode has been programmed, along with possible test patterns. 38 * the mode has been programmed, along with possible test patterns.
39 */ 39 */
40 40
41#ifdef HAVE_CONFIG_H
42#include "config.h"
43#endif
44
45#include <assert.h> 41#include <assert.h>
46#include <ctype.h> 42#include <ctype.h>
47#include <stdbool.h> 43#include <stdbool.h>
diff --git a/tests/nouveau/threaded.c b/tests/nouveau/threaded.c
index 281af460..3669bcd3 100644
--- a/tests/nouveau/threaded.c
+++ b/tests/nouveau/threaded.c
@@ -20,10 +20,6 @@
20 * OTHER DEALINGS IN THE SOFTWARE. 20 * OTHER DEALINGS IN THE SOFTWARE.
21 */ 21 */
22 22
23#ifdef HAVE_CONFIG_H
24# include "config.h"
25#endif
26
27#include <sys/ioctl.h> 23#include <sys/ioctl.h>
28#include <dlfcn.h> 24#include <dlfcn.h>
29#include <fcntl.h> 25#include <fcntl.h>
diff --git a/tests/tegra/openclose.c b/tests/tegra/openclose.c
index 881d8aa4..f80f52d4 100644
--- a/tests/tegra/openclose.c
+++ b/tests/tegra/openclose.c
@@ -20,10 +20,6 @@
20 * OTHER DEALINGS IN THE SOFTWARE. 20 * OTHER DEALINGS IN THE SOFTWARE.
21 */ 21 */
22 22
23#ifdef HAVE_CONFIG_H
24# include "config.h"
25#endif
26
27#include <fcntl.h> 23#include <fcntl.h>
28#include <stdio.h> 24#include <stdio.h>
29#include <unistd.h> 25#include <unistd.h>
diff --git a/tests/util/format.c b/tests/util/format.c
index 043cfe7f..15ac5e1e 100644
--- a/tests/util/format.c
+++ b/tests/util/format.c
@@ -23,10 +23,6 @@
23 * IN THE SOFTWARE. 23 * IN THE SOFTWARE.
24 */ 24 */
25 25
26#ifdef HAVE_CONFIG_H
27#include "config.h"
28#endif
29
30#include <stdint.h> 26#include <stdint.h>
31#include <stdlib.h> 27#include <stdlib.h>
32#include <string.h> 28#include <string.h>
diff --git a/tests/util/kms.c b/tests/util/kms.c
index 028cc8d9..8b3e7878 100644
--- a/tests/util/kms.c
+++ b/tests/util/kms.c
@@ -37,10 +37,6 @@
37 * the mode has been programmed, along with possible test patterns. 37 * the mode has been programmed, along with possible test patterns.
38 */ 38 */
39 39
40#ifdef HAVE_CONFIG_H
41#include "config.h"
42#endif
43
44#include <errno.h> 40#include <errno.h>
45#include <stdint.h> 41#include <stdint.h>
46#include <stdio.h> 42#include <stdio.h>
diff --git a/tests/util/pattern.c b/tests/util/pattern.c
index 75a458d4..9fa0a417 100644
--- a/tests/util/pattern.c
+++ b/tests/util/pattern.c
@@ -23,10 +23,6 @@
23 * IN THE SOFTWARE. 23 * IN THE SOFTWARE.
24 */ 24 */
25 25
26#ifdef HAVE_CONFIG_H
27#include "config.h"
28#endif
29
30#include <stdint.h> 26#include <stdint.h>
31#include <stdio.h> 27#include <stdio.h>
32#include <stdlib.h> 28#include <stdlib.h>
diff --git a/tests/vbltest/vbltest.c b/tests/vbltest/vbltest.c
index 3f6b803a..48708d20 100644
--- a/tests/vbltest/vbltest.c
+++ b/tests/vbltest/vbltest.c
@@ -24,10 +24,6 @@
24 * IN THE SOFTWARE. 24 * IN THE SOFTWARE.
25 */ 25 */
26 26
27#ifdef HAVE_CONFIG_H
28#include "config.h"
29#endif
30
31#include <assert.h> 27#include <assert.h>
32#include <stdio.h> 28#include <stdio.h>
33#include <stdlib.h> 29#include <stdlib.h>
diff --git a/xf86atomic.h b/xf86atomic.h
index 70e91866..2d733bd5 100644
--- a/xf86atomic.h
+++ b/xf86atomic.h
@@ -34,10 +34,6 @@
34#ifndef LIBDRM_ATOMICS_H 34#ifndef LIBDRM_ATOMICS_H
35#define LIBDRM_ATOMICS_H 35#define LIBDRM_ATOMICS_H
36 36
37#ifdef HAVE_CONFIG_H
38#include "config.h"
39#endif
40
41#if HAVE_LIBDRM_ATOMIC_PRIMITIVES 37#if HAVE_LIBDRM_ATOMIC_PRIMITIVES
42 38
43#define HAS_ATOMIC_OPS 1 39#define HAS_ATOMIC_OPS 1
diff --git a/xf86drm.c b/xf86drm.c
index 9328bf5a..689e8fe9 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -31,9 +31,6 @@
31 * DEALINGS IN THE SOFTWARE. 31 * DEALINGS IN THE SOFTWARE.
32 */ 32 */
33 33
34#ifdef HAVE_CONFIG_H
35# include <config.h>
36#endif
37#include <stdio.h> 34#include <stdio.h>
38#include <stdlib.h> 35#include <stdlib.h>
39#include <stdbool.h> 36#include <stdbool.h>
diff --git a/xf86drmMode.c b/xf86drmMode.c
index bd59ef25..cf8e1eac 100644
--- a/xf86drmMode.c
+++ b/xf86drmMode.c
@@ -38,10 +38,6 @@
38 * platforms find which headers to include to get uint32_t 38 * platforms find which headers to include to get uint32_t
39 */ 39 */
40 40
41#ifdef HAVE_CONFIG_H
42#include "config.h"
43#endif
44
45#include <limits.h> 41#include <limits.h>
46#include <stdint.h> 42#include <stdint.h>
47#include <stdlib.h> 43#include <stdlib.h>