summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--benchmarks/gem_exec_tracer.c2
-rw-r--r--benchmarks/gem_latency.c1
-rw-r--r--benchmarks/gem_syslatency.c2
-rw-r--r--lib/igt_fb.c1
-rw-r--r--lib/igt_vgem.c2
-rw-r--r--lib/tests/igt_exit_handler.c1
-rw-r--r--tests/core_get_client_auth.c1
-rw-r--r--tests/core_setmaster_vs_auth.c1
-rw-r--r--tests/drm_import_export.c1
-rw-r--r--tests/drv_missed_irq.c1
-rw-r--r--tests/gem_fenced_exec_thrash.c2
-rw-r--r--tests/gem_flink_race.c1
-rw-r--r--tests/gem_mmap_gtt.c1
-rw-r--r--tests/gem_mmap_wc.c1
-rw-r--r--tests/gem_persistent_relocs.c1
-rw-r--r--tests/gem_reloc_vs_gpu.c1
-rw-r--r--tests/gem_reset_stats.c1
-rw-r--r--tests/gem_streaming_writes.c1
-rw-r--r--tests/gem_workarounds.c1
-rw-r--r--tests/kms_cursor_legacy.c1
-rw-r--r--tests/pm_rc6_residency.c1
-rw-r--r--tests/pm_rps.c1
-rw-r--r--tests/prime_mmap.c1
-rw-r--r--tests/prime_self_import.c1
-rw-r--r--tools/aubdump.c2
-rw-r--r--tools/intel_audio_dump.c1
-rw-r--r--tools/intel_dump_decode.c1
-rw-r--r--tools/intel_error_decode.c1
-rw-r--r--tools/intel_framebuffer_dump.c1
-rw-r--r--tools/intel_gpu_frequency.c1
-rw-r--r--tools/intel_guc_logger.c1
-rw-r--r--tools/intel_l3_parity.c1
-rw-r--r--tools/intel_l3_udev_listener.c3
33 files changed, 0 insertions, 40 deletions
diff --git a/benchmarks/gem_exec_tracer.c b/benchmarks/gem_exec_tracer.c
index a49c11a9..8ee29b5d 100644
--- a/benchmarks/gem_exec_tracer.c
+++ b/benchmarks/gem_exec_tracer.c
@@ -21,8 +21,6 @@
* IN THE SOFTWARE.
*/
-#define _GNU_SOURCE /* for RTLD_NEXT */
-
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
diff --git a/benchmarks/gem_latency.c b/benchmarks/gem_latency.c
index 6cb16ba4..c3fc4bf0 100644
--- a/benchmarks/gem_latency.c
+++ b/benchmarks/gem_latency.c
@@ -25,7 +25,6 @@
*
*/
-#define _GNU_SOURCE
#include <pthread.h>
#include "igt.h"
diff --git a/benchmarks/gem_syslatency.c b/benchmarks/gem_syslatency.c
index 83bfac78..4ed23638 100644
--- a/benchmarks/gem_syslatency.c
+++ b/benchmarks/gem_syslatency.c
@@ -22,8 +22,6 @@
*
*/
-#define _GNU_SOURCE
-
#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index fbdfca8a..95434a69 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -25,7 +25,6 @@
* Damien Lespiau <damien.lespiau@intel.com>
*/
-#define _GNU_SOURCE
#include <stdio.h>
#include <math.h>
diff --git a/lib/igt_vgem.c b/lib/igt_vgem.c
index 21cccb37..3dd9621d 100644
--- a/lib/igt_vgem.c
+++ b/lib/igt_vgem.c
@@ -21,8 +21,6 @@
* IN THE SOFTWARE.
*/
-#define _GNU_SOURCE
-
#include "igt.h"
#include "igt_vgem.h"
diff --git a/lib/tests/igt_exit_handler.c b/lib/tests/igt_exit_handler.c
index d1b5a889..f2997bd1 100644
--- a/lib/tests/igt_exit_handler.c
+++ b/lib/tests/igt_exit_handler.c
@@ -21,7 +21,6 @@
* IN THE SOFTWARE.
*/
-#define _GNU_SOURCE
#include <assert.h>
#include <unistd.h>
#include <fcntl.h>
diff --git a/tests/core_get_client_auth.c b/tests/core_get_client_auth.c
index 50e87fac..676083d5 100644
--- a/tests/core_get_client_auth.c
+++ b/tests/core_get_client_auth.c
@@ -32,7 +32,6 @@
* Oh dear, libva, why do you do such funny things?
*/
-#define _GNU_SOURCE
#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
diff --git a/tests/core_setmaster_vs_auth.c b/tests/core_setmaster_vs_auth.c
index 78303339..f1ae0c63 100644
--- a/tests/core_setmaster_vs_auth.c
+++ b/tests/core_setmaster_vs_auth.c
@@ -33,7 +33,6 @@
* trying to authenticate a client against the wrong master.
*/
-#define _GNU_SOURCE
#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
diff --git a/tests/drm_import_export.c b/tests/drm_import_export.c
index f1234bdc..e3ce2480 100644
--- a/tests/drm_import_export.c
+++ b/tests/drm_import_export.c
@@ -24,7 +24,6 @@
* Daniel Vetter <daniel.vetter@ffwll.ch>
*/
-#define _GNU_SOURCE
#include "igt.h"
#include <stdio.h>
#include <sys/types.h>
diff --git a/tests/drv_missed_irq.c b/tests/drv_missed_irq.c
index fb81f277..469be882 100644
--- a/tests/drv_missed_irq.c
+++ b/tests/drv_missed_irq.c
@@ -22,7 +22,6 @@
*
*/
-#define _GNU_SOURCE
#include <sched.h>
#include "igt.h"
diff --git a/tests/gem_fenced_exec_thrash.c b/tests/gem_fenced_exec_thrash.c
index e403a491..9a43c845 100644
--- a/tests/gem_fenced_exec_thrash.c
+++ b/tests/gem_fenced_exec_thrash.c
@@ -25,8 +25,6 @@
*
*/
-#define _GNU_SOURCE
-
#include "igt.h"
#include <stdlib.h>
#include <sys/ioctl.h>
diff --git a/tests/gem_flink_race.c b/tests/gem_flink_race.c
index 30e33f65..9e3d3a62 100644
--- a/tests/gem_flink_race.c
+++ b/tests/gem_flink_race.c
@@ -24,7 +24,6 @@
* Daniel Vetter <daniel.vetter@ffwll.ch>
*/
-#define _GNU_SOURCE
#include "igt.h"
#include <sys/ioctl.h>
#include <stdlib.h>
diff --git a/tests/gem_mmap_gtt.c b/tests/gem_mmap_gtt.c
index 4ff5e7f1..0f598125 100644
--- a/tests/gem_mmap_gtt.c
+++ b/tests/gem_mmap_gtt.c
@@ -25,7 +25,6 @@
*
*/
-#define _GNU_SOURCE
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/tests/gem_mmap_wc.c b/tests/gem_mmap_wc.c
index fd798807..110883eb 100644
--- a/tests/gem_mmap_wc.c
+++ b/tests/gem_mmap_wc.c
@@ -25,7 +25,6 @@
*
*/
-#define _GNU_SOURCE
#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
diff --git a/tests/gem_persistent_relocs.c b/tests/gem_persistent_relocs.c
index bc831ee4..452fe686 100644
--- a/tests/gem_persistent_relocs.c
+++ b/tests/gem_persistent_relocs.c
@@ -25,7 +25,6 @@
*
*/
-#define _GNU_SOURCE
#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
diff --git a/tests/gem_reloc_vs_gpu.c b/tests/gem_reloc_vs_gpu.c
index afc31328..d421e434 100644
--- a/tests/gem_reloc_vs_gpu.c
+++ b/tests/gem_reloc_vs_gpu.c
@@ -25,7 +25,6 @@
*
*/
-#define _GNU_SOURCE
#include "igt.h"
#include <stdlib.h>
#include <stdio.h>
diff --git a/tests/gem_reset_stats.c b/tests/gem_reset_stats.c
index 9ac08aab..edc40767 100644
--- a/tests/gem_reset_stats.c
+++ b/tests/gem_reset_stats.c
@@ -25,7 +25,6 @@
*
*/
-#define _GNU_SOURCE
#include "igt.h"
#include "igt_sysfs.h"
#include <limits.h>
diff --git a/tests/gem_streaming_writes.c b/tests/gem_streaming_writes.c
index c27e7fa7..e83d69de 100644
--- a/tests/gem_streaming_writes.c
+++ b/tests/gem_streaming_writes.c
@@ -25,7 +25,6 @@
*
*/
-#define _GNU_SOURCE
#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
diff --git a/tests/gem_workarounds.c b/tests/gem_workarounds.c
index c7286d86..d6641bd5 100644
--- a/tests/gem_workarounds.c
+++ b/tests/gem_workarounds.c
@@ -25,7 +25,6 @@
*
*/
-#define _GNU_SOURCE
#include "igt.h"
#include <fcntl.h>
diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
index bdb66f3b..2d32d3a9 100644
--- a/tests/kms_cursor_legacy.c
+++ b/tests/kms_cursor_legacy.c
@@ -22,7 +22,6 @@
*
*/
-#define _GNU_SOURCE
#include <sched.h>
#include <sys/poll.h>
diff --git a/tests/pm_rc6_residency.c b/tests/pm_rc6_residency.c
index bdb9747a..7c87302d 100644
--- a/tests/pm_rc6_residency.c
+++ b/tests/pm_rc6_residency.c
@@ -25,7 +25,6 @@
*
*/
-#define _GNU_SOURCE
#include "igt.h"
#include "igt_sysfs.h"
#include <stdio.h>
diff --git a/tests/pm_rps.c b/tests/pm_rps.c
index 5eb969a5..68c6bfe7 100644
--- a/tests/pm_rps.c
+++ b/tests/pm_rps.c
@@ -26,7 +26,6 @@
*
*/
-#define _GNU_SOURCE
#include "igt.h"
#include <stdio.h>
#include <stdlib.h>
diff --git a/tests/prime_mmap.c b/tests/prime_mmap.c
index 1ea61c2f..0da0aa68 100644
--- a/tests/prime_mmap.c
+++ b/tests/prime_mmap.c
@@ -29,7 +29,6 @@
/*
* Testcase: Check whether mmap()ing dma-buf works
*/
-#define _GNU_SOURCE
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/tests/prime_self_import.c b/tests/prime_self_import.c
index 992334d4..8c4f5321 100644
--- a/tests/prime_self_import.c
+++ b/tests/prime_self_import.c
@@ -31,7 +31,6 @@
* ... but with different fds, i.e. the wayland usecase.
*/
-#define _GNU_SOURCE
#include "igt.h"
#include <unistd.h>
#include <stdlib.h>
diff --git a/tools/aubdump.c b/tools/aubdump.c
index 4387ea83..4392e589 100644
--- a/tools/aubdump.c
+++ b/tools/aubdump.c
@@ -21,8 +21,6 @@
* IN THE SOFTWARE.
*/
-#define _GNU_SOURCE /* for RTLD_NEXT */
-
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c
index c8d369b5..90260a2f 100644
--- a/tools/intel_audio_dump.c
+++ b/tools/intel_audio_dump.c
@@ -26,7 +26,6 @@
*
*/
-#define _GNU_SOURCE
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/tools/intel_dump_decode.c b/tools/intel_dump_decode.c
index 0341aada..4bb77440 100644
--- a/tools/intel_dump_decode.c
+++ b/tools/intel_dump_decode.c
@@ -25,7 +25,6 @@
*
*/
-#define _GNU_SOURCE
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tools/intel_error_decode.c b/tools/intel_error_decode.c
index 2cbdd887..cdef3b18 100644
--- a/tools/intel_error_decode.c
+++ b/tools/intel_error_decode.c
@@ -38,7 +38,6 @@
* decode, but never crash in the process.
*/
-#define _GNU_SOURCE
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tools/intel_framebuffer_dump.c b/tools/intel_framebuffer_dump.c
index 624a9613..79c0688b 100644
--- a/tools/intel_framebuffer_dump.c
+++ b/tools/intel_framebuffer_dump.c
@@ -26,7 +26,6 @@
* Read back all the KMS framebuffers attached to the CRTC and record as PNG.
*/
-#define _GNU_SOURCE
#include <stdint.h>
#include <sys/types.h>
#include <sys/mman.h>
diff --git a/tools/intel_gpu_frequency.c b/tools/intel_gpu_frequency.c
index cb758b0a..5c439b03 100644
--- a/tools/intel_gpu_frequency.c
+++ b/tools/intel_gpu_frequency.c
@@ -46,7 +46,6 @@
* intel_gpu_frequency -d
*/
-#define _GNU_SOURCE
#include <assert.h>
#include <getopt.h>
#include <stdio.h>
diff --git a/tools/intel_guc_logger.c b/tools/intel_guc_logger.c
index 3079878e..7c6115a6 100644
--- a/tools/intel_guc_logger.c
+++ b/tools/intel_guc_logger.c
@@ -1,5 +1,4 @@
-#define _GNU_SOURCE /* For using O_DIRECT */
#include <inttypes.h>
#include <stdio.h>
#include <fcntl.h>
diff --git a/tools/intel_l3_parity.c b/tools/intel_l3_parity.c
index 26b7caaa..9df4fc24 100644
--- a/tools/intel_l3_parity.c
+++ b/tools/intel_l3_parity.c
@@ -25,7 +25,6 @@
*
*/
-#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>
diff --git a/tools/intel_l3_udev_listener.c b/tools/intel_l3_udev_listener.c
index 57a0f0bf..94d931e5 100644
--- a/tools/intel_l3_udev_listener.c
+++ b/tools/intel_l3_udev_listener.c
@@ -25,9 +25,6 @@
#ifdef HAVE_UDEV
#include <libudev.h>
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>