diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-09-05 14:36:04 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-09-08 17:03:32 +0200 |
commit | b36f978b243b21166a58929ff4c3c66bba7ed8dd (patch) | |
tree | 59156f167ff205a833b89cb6256699a4946fe2b3 | |
parent | 692357e240c6cbcd9bef62554c8b09bd2f5ed839 (diff) |
build: Nuke #ifdef HAVE_CONFIG_H cargo-cult
We have it. Daniel Stone said the #ifdef HAVE_CONFIG_H comes from the
X11 transition to the modular build, where in the imake -> modular
build transition config.h wasn't universally available. Now we just
make this a requirement (so yeah Android better generate one too).
v2: Improve commit message a bit.
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Acked-by: Petri Latvala <petri.latvala@intel.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Acked-by: Radoslaw Szwichtenberg <radoslaw.szwichtenberg@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | lib/igt_alsa.h | 2 | ||||
-rw-r--r-- | lib/igt_audio.h | 2 | ||||
-rw-r--r-- | lib/igt_chamelium.h | 2 | ||||
-rw-r--r-- | lib/igt_frame.h | 2 | ||||
-rw-r--r-- | lib/igt_x86.c | 2 | ||||
-rw-r--r-- | lib/intel_os.c | 2 | ||||
-rw-r--r-- | overlay/overlay.h | 2 | ||||
-rw-r--r-- | overlay/x11/position.c | 2 | ||||
-rw-r--r-- | tests/amdgpu/amd_basic.c | 2 | ||||
-rw-r--r-- | tests/debugfs_test.c | 2 | ||||
-rw-r--r-- | tests/gem_fence_thrash.c | 2 | ||||
-rw-r--r-- | tests/gem_fence_upload.c | 2 | ||||
-rw-r--r-- | tests/gem_render_linear_blits.c | 2 | ||||
-rw-r--r-- | tests/kms_flip.c | 2 | ||||
-rw-r--r-- | tests/kms_render.c | 2 | ||||
-rw-r--r-- | tests/kms_setmode.c | 2 | ||||
-rw-r--r-- | tests/testdisplay.c | 2 | ||||
-rw-r--r-- | tests/testdisplay_hotplug.c | 2 | ||||
-rw-r--r-- | tests/tools_test.c | 2 | ||||
-rw-r--r-- | tools/intel_gpu_top.c | 2 | ||||
-rw-r--r-- | tools/intel_gvtg_test.c | 2 | ||||
-rw-r--r-- | tools/intel_l3_parity.c | 2 | ||||
-rw-r--r-- | tools/intel_l3_udev_listener.c | 2 |
23 files changed, 0 insertions, 46 deletions
diff --git a/lib/igt_alsa.h b/lib/igt_alsa.h index f3949d26..8f7724ad 100644 --- a/lib/igt_alsa.h +++ b/lib/igt_alsa.h @@ -27,9 +27,7 @@ #ifndef IGT_ALSA_H #define IGT_ALSA_H -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "igt.h" #include <stdbool.h> diff --git a/lib/igt_audio.h b/lib/igt_audio.h index 507e7ab9..21adfee8 100644 --- a/lib/igt_audio.h +++ b/lib/igt_audio.h @@ -27,9 +27,7 @@ #ifndef IGT_AUDIO_H #define IGT_AUDIO_H -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "igt.h" #include <stdbool.h> diff --git a/lib/igt_chamelium.h b/lib/igt_chamelium.h index 2a0fa234..a2d626ec 100644 --- a/lib/igt_chamelium.h +++ b/lib/igt_chamelium.h @@ -26,9 +26,7 @@ #ifndef IGT_CHAMELIUM_H #define IGT_CHAMELIUM_H -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "igt.h" #include <stdbool.h> diff --git a/lib/igt_frame.h b/lib/igt_frame.h index 1d9bbf6a..680ad5bb 100644 --- a/lib/igt_frame.h +++ b/lib/igt_frame.h @@ -27,9 +27,7 @@ #ifndef IGT_FRAME_H #define IGT_FRAME_H -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "igt.h" #include <stdbool.h> diff --git a/lib/igt_x86.c b/lib/igt_x86.c index 6f03849f..0f0963ce 100644 --- a/lib/igt_x86.c +++ b/lib/igt_x86.c @@ -25,9 +25,7 @@ * */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #ifdef HAVE_CPUID_H #include <cpuid.h> diff --git a/lib/intel_os.c b/lib/intel_os.c index e5dea6e5..6e0a46b3 100644 --- a/lib/intel_os.c +++ b/lib/intel_os.c @@ -26,9 +26,7 @@ * */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <unistd.h> #include <stdlib.h> diff --git a/overlay/overlay.h b/overlay/overlay.h index 793816d2..7bc7ada7 100644 --- a/overlay/overlay.h +++ b/overlay/overlay.h @@ -25,9 +25,7 @@ #ifndef OVERLAY_H #define OVERLAY_H -#ifdef HAVE_CONFIG_H #include"config.h" -#endif #include <cairo.h> diff --git a/overlay/x11/position.c b/overlay/x11/position.c index cd003539..9e3db370 100644 --- a/overlay/x11/position.c +++ b/overlay/x11/position.c @@ -22,9 +22,7 @@ * */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <X11/Xlib.h> #ifdef HAVE_XRANDR diff --git a/tests/amdgpu/amd_basic.c b/tests/amdgpu/amd_basic.c index 5e44b123..9f21de65 100644 --- a/tests/amdgpu/amd_basic.c +++ b/tests/amdgpu/amd_basic.c @@ -22,9 +22,7 @@ * Based on libdrm/tests/amdgpu/basic_tests.c */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <stdio.h> #include <stdlib.h> diff --git a/tests/debugfs_test.c b/tests/debugfs_test.c index 1663fd41..5e7805e1 100644 --- a/tests/debugfs_test.c +++ b/tests/debugfs_test.c @@ -20,9 +20,7 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "igt.h" #include "igt_sysfs.h" #include <fcntl.h> diff --git a/tests/gem_fence_thrash.c b/tests/gem_fence_thrash.c index 52095f26..14d026a9 100644 --- a/tests/gem_fence_thrash.c +++ b/tests/gem_fence_thrash.c @@ -26,9 +26,7 @@ * */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "igt.h" #include <unistd.h> diff --git a/tests/gem_fence_upload.c b/tests/gem_fence_upload.c index 7d9acdc0..f3b0e62f 100644 --- a/tests/gem_fence_upload.c +++ b/tests/gem_fence_upload.c @@ -25,9 +25,7 @@ * */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "igt.h" #include <unistd.h> diff --git a/tests/gem_render_linear_blits.c b/tests/gem_render_linear_blits.c index 5fc8cc5e..db34d427 100644 --- a/tests/gem_render_linear_blits.c +++ b/tests/gem_render_linear_blits.c @@ -33,9 +33,7 @@ * The goal is to simply ensure the basics work. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "igt.h" #include <stdlib.h> diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 5ac6438d..acec95f0 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -21,9 +21,7 @@ * IN THE SOFTWARE. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "igt.h" diff --git a/tests/kms_render.c b/tests/kms_render.c index fd33dfb7..d2208e38 100644 --- a/tests/kms_render.c +++ b/tests/kms_render.c @@ -20,9 +20,7 @@ * Authors: * Imre Deak <imre.deak@intel.com> */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "igt.h" #include <cairo.h> diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c index a7a48de4..206d3606 100644 --- a/tests/kms_setmode.c +++ b/tests/kms_setmode.c @@ -20,9 +20,7 @@ * Authors: * Imre Deak <imre.deak@intel.com> */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "igt.h" #include <cairo.h> diff --git a/tests/testdisplay.c b/tests/testdisplay.c index f2a41fa0..b0156c5c 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -45,9 +45,7 @@ * - DP commands (e.g. poweroff) * - verify outputs against VBT/physical connectors */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "igt.h" #include <cairo.h> diff --git a/tests/testdisplay_hotplug.c b/tests/testdisplay_hotplug.c index cf155118..ca1d849d 100644 --- a/tests/testdisplay_hotplug.c +++ b/tests/testdisplay_hotplug.c @@ -29,9 +29,7 @@ #include <sys/stat.h> #include "testdisplay.h" -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #ifdef HAVE_UDEV diff --git a/tests/tools_test.c b/tests/tools_test.c index ccd165de..3122bb4f 100644 --- a/tests/tools_test.c +++ b/tests/tools_test.c @@ -20,9 +20,7 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "igt.h" #include <stdio.h> #include <sys/types.h> diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c index 3fe77f70..7454de87 100644 --- a/tools/intel_gpu_top.c +++ b/tools/intel_gpu_top.c @@ -27,9 +27,7 @@ * */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include <unistd.h> #include <stdlib.h> diff --git a/tools/intel_gvtg_test.c b/tools/intel_gvtg_test.c index 3db2c89b..7a29fbdd 100644 --- a/tools/intel_gvtg_test.c +++ b/tools/intel_gvtg_test.c @@ -28,9 +28,7 @@ * TODO: * Enable more GVT-g related test cases. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "igt.h" #include <errno.h> diff --git a/tools/intel_l3_parity.c b/tools/intel_l3_parity.c index eb00c50d..26b7caaa 100644 --- a/tools/intel_l3_parity.c +++ b/tools/intel_l3_parity.c @@ -39,9 +39,7 @@ #include "intel_io.h" #include "igt_sysfs.h" #include "drmtest.h" -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #ifdef HAVE_UDEV #include <libudev.h> #include <syslog.h> diff --git a/tools/intel_l3_udev_listener.c b/tools/intel_l3_udev_listener.c index 270bfff4..57a0f0bf 100644 --- a/tools/intel_l3_udev_listener.c +++ b/tools/intel_l3_udev_listener.c @@ -21,9 +21,7 @@ * DEALINGS IN THE SOFTWARE. */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #ifdef HAVE_UDEV #include <libudev.h> |