lib: Remove unused headers
PATCH 1/14 lib: Remove unused headers
Using CLion's automated code inspection, most unused includes were found and removed. Some warnings remain as CLion is unable to track code usage across certain attributes, but the vast majority of unneeded headers are now gone.
--- lib/drmtest.c | 18 ------------------ lib/i915/gem_mman.c | 1 - lib/i915/gem_scheduler.c | 1 - lib/i915/i915_blt.c | 4 ---- lib/i915/intel_memory_region.c | 7 ------- lib/i915/perf.c | 1 - lib/i915/perf_data_reader.c | 2 -- lib/igt.h | 13 +++++++------ lib/igt_alsa.c | 4 ---- lib/igt_audio.c | 2 -- lib/igt_aux.c | 15 --------------- lib/igt_chamelium.c | 1 - lib/igt_chamelium_stream.c | 2 -- lib/igt_core.c | 11 ----------- lib/igt_debugfs.c | 3 --- lib/igt_device.c | 1 - lib/igt_device_scan.c | 1 - lib/igt_drm_fdinfo.c | 1 - lib/igt_dummyload.c | 1 - lib/igt_edid.c | 2 -- lib/igt_eld.c | 4 ---- lib/igt_frame.c | 2 -- lib/igt_gt.c | 5 ----- lib/igt_infoframe.c | 2 -- lib/igt_kms.c | 3 --- lib/igt_msm.c | 3 --- lib/igt_nouveau.c | 1 - lib/igt_panfrost.c | 9 +-------- lib/igt_params.c | 1 - lib/igt_pm.c | 1 - lib/igt_primes.c | 1 - lib/igt_rapl.c | 1 - lib/igt_sysfs.c | 5 ----- lib/igt_thread.c | 2 -- lib/igt_v3d.c | 8 -------- lib/igt_vc4.c | 7 ------- lib/igt_x86.c | 1 - lib/instdone.c | 1 - lib/intel_allocator_msgchannel.c | 1 - lib/intel_allocator_random.c | 2 -- lib/intel_allocator_reloc.c | 2 -- lib/intel_allocator_simple.c | 3 --- lib/intel_batchbuffer.c | 3 --- lib/intel_chipset.c | 7 ------- lib/intel_device_info.c | 2 -- lib/intel_iosf.c | 3 --- lib/intel_mmio.c | 7 ------- lib/intel_os.c | 5 ----- lib/intel_reg_map.c | 3 --- lib/ioctl_wrappers.c | 15 --------------- lib/media_fill.c | 1 - lib/media_spin.c | 1 - lib/nouveau/cea0b5.c | 2 -- lib/rendercopy_gen6.c | 11 ----------- lib/rendercopy_gen7.c | 11 ----------- lib/rendercopy_gen8.c | 13 ------------- lib/rendercopy_gen9.c | 13 ------------- lib/rendercopy_i830.c | 9 --------- lib/rendercopy_i915.c | 9 --------- lib/sw_sync.c | 3 --- lib/tests/igt_assert.c | 3 --- lib/tests/igt_audio.c | 2 -- lib/tests/igt_conflicting_args.c | 2 -- lib/tests/igt_describe.c | 1 - lib/tests/igt_dynamic_subtests.c | 1 - lib/tests/igt_edid.c | 2 -- lib/tests/igt_exit_handler.c | 1 - lib/tests/igt_fork.c | 1 - lib/tests/igt_fork_helper.c | 1 - lib/tests/igt_invalid_subtest_name.c | 1 - lib/tests/igt_segfault.c | 3 --- lib/tests/igt_simulation.c | 3 --- lib/veboxcopy_gen12.c | 1 - 73 files changed, 8 insertions(+), 288 deletions(-)
lib/drmtest.c +0 -18
@@ -26,42 +26,24 @@* */ -#ifdef HAVE_LIBGEN_H -#include <libgen.h> -#endif #include <stdio.h> #include <fcntl.h> #include <sys/stat.h> -#include <sys/ioctl.h> #include <string.h> -#include <sys/mman.h> -#include <signal.h> -#include <pciaccess.h> -#include <stdlib.h> #include <unistd.h> -#include <sys/wait.h> #include <sys/types.h> -#include <sys/syscall.h> -#include <sys/utsname.h> -#include <termios.h> #include <pthread.h> #include "drmtest.h" #include "i915_drm.h" #include "i915/gem.h" -#include "intel_chipset.h" -#include "intel_io.h" #include "igt_debugfs.h" #include "igt_device.h" -#include "igt_gt.h" #include "igt_kmod.h" #include "igt_params.h" -#include "igt_sysfs.h" #include "igt_device_scan.h" #include "version.h" #include "config.h" -#include "intel_reg.h" -#include "ioctl_wrappers.h" #include "igt_dummyload.h" /**
lib/i915/gem_mman.c +0 -1
@@ -27,7 +27,6 @@#include <errno.h> #include "igt_core.h" -#include "igt_gt.h" #include "igt_device.h" #include "ioctl_wrappers.h" #include "intel_chipset.h"
lib/i915/gem_scheduler.c +0 -1
@@ -28,7 +28,6 @@#include "igt_core.h" #include "ioctl_wrappers.h" -#include "i915/i915_drm_local.h" #include "i915/gem_scheduler.h" #include "i915/gem_submission.h"
lib/i915/i915_blt.c +0 -4
@@ -3,12 +3,8 @@* Copyright © 2022 Intel Corporation */ -#include <errno.h> -#include <sys/ioctl.h> -#include <sys/time.h> #include <malloc.h> #include <cairo.h> -#include "drm.h" #include "igt.h" #include "gem_create.h" #include "i915_blt.h"
lib/i915/intel_memory_region.c +0 -7
@@ -21,12 +21,9 @@* IN THE SOFTWARE. */ -#include <linux/limits.h> #include <signal.h> #include <sys/ioctl.h> -#include <sys/time.h> #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <pthread.h>
@@ -36,12 +33,8 @@#include "ioctl_wrappers.h" #include "igt_aux.h" #include "igt_dummyload.h" -#include "igt_gt.h" -#include "igt_params.h" -#include "igt_sysfs.h" #include "intel_chipset.h" #include "igt_collection.h" -#include "igt_device.h" #include "gem_mman.h" #include "i915/intel_memory_region.h"
lib/i915/perf.c +0 -1
@@ -30,7 +30,6 @@#include <sys/ioctl.h> #include <sys/stat.h> #include <sys/sysmacros.h> -#include <sys/types.h> #include <unistd.h> #include <i915_drm.h>
lib/i915/perf_data_reader.c +0 -2
@@ -26,9 +26,7 @@#include <stdlib.h> #include <string.h> #include <sys/mman.h> -#include <sys/types.h> #include <sys/stat.h> -#include <unistd.h> #include <i915_drm.h>
lib/igt.h +7 -6
@@ -39,12 +39,6 @@#include "igt_params.h" #include "igt_pm.h" #include "igt_stats.h" -#ifdef HAVE_CHAMELIUM -#include "igt_alsa.h" -#include "igt_audio.h" -#include "igt_chamelium.h" -#include "igt_chamelium_stream.h" -#endif #include "instdone.h" #include "intel_batchbuffer.h" #include "intel_chipset.h"
@@ -56,4 +50,11 @@#include "i915/gem_mman.h" #include "i915/gem_engine_topology.h" +#ifdef HAVE_CHAMELIUM +#include "igt_alsa.h" +#include "igt_audio.h" +#include "igt_chamelium.h" +#include "igt_chamelium_stream.h" +#endif +#endif /* IGT_H */
lib/igt_alsa.c +0 -4
@@ -24,10 +24,6 @@* Paul Kocialkowski <[email protected]> */ -#include "config.h" - -#include <limits.h> -#include "igt_alsa.h" #include "igt_aux.h" #include "igt_core.h"
lib/igt_audio.c +0 -2
@@ -24,8 +24,6 @@* Paul Kocialkowski <[email protected]> */ -#include "config.h" -#include <errno.h> #include <fcntl.h> #include <gsl/gsl_fft_real.h>
lib/igt_aux.c +0 -15
@@ -37,17 +37,12 @@#include <string.h> #include <sys/mman.h> #include <signal.h> -#include <pciaccess.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <sys/poll.h> #include <sys/wait.h> #include <sys/resource.h> -#include <sys/time.h> -#include <sys/types.h> -#include <sys/syscall.h> -#include <sys/utsname.h> #include <termios.h> #include <assert.h> #include <grp.h>
@@ -56,24 +51,14 @@#include <libudev.h> #include "drmtest.h" -#include "i915_drm.h" -#include "intel_chipset.h" #include "igt_aux.h" #include "igt_debugfs.h" -#include "igt_gt.h" #include "igt_params.h" #include "igt_rand.h" #include "igt_sysfs.h" #include "config.h" -#include "intel_reg.h" #include "ioctl_wrappers.h" -#include "igt_kms.h" #include "igt_stats.h" -#include "igt_sysfs.h" - -#ifdef HAVE_LIBGEN_H -#include <libgen.h> /* for dirname() */ -#endif /** * SECTION:igt_aux
lib/igt_chamelium.c +0 -1
@@ -28,7 +28,6 @@#include <stdbool.h> #include <string.h> -#include <errno.h> #include <math.h> #include <xmlrpc-c/base.h> #include <xmlrpc-c/client.h>
lib/igt_chamelium_stream.c +0 -2
@@ -23,8 +23,6 @@* Authors: Simon Ser <[email protected]> */ -#include "config.h" -#include <arpa/inet.h> #include <errno.h> #include <netdb.h>
lib/igt_core.c +0 -11
@@ -32,10 +32,7 @@#include <stdio.h> #include <assert.h> #include <fcntl.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <string.h> -#include <sys/mman.h> #include <signal.h> #include <pciaccess.h> #include <getopt.h>
@@ -48,7 +45,6 @@#endif #include <pthread.h> #include <sys/utsname.h> -#include <termios.h> #include <errno.h> #include <time.h> #include <ctype.h>
@@ -61,8 +57,6 @@#include "i915/gem_create.h" #include "intel_allocator.h" #include "intel_batchbuffer.h" -#include "intel_chipset.h" -#include "intel_io.h" #include "igt_debugfs.h" #include "igt_dummyload.h" #include "version.h"
@@ -72,7 +66,6 @@#include "igt_aux.h" #include "igt_sysfs.h" #include "igt_sysrq.h" -#include "igt_rc.h" #include "igt_list.h" #include "igt_device_scan.h" #include "igt_thread.h"
@@ -81,10 +74,6 @@#include <libunwind.h> #include <elfutils/libdwfl.h> -#ifdef HAVE_LIBGEN_H -#include <libgen.h> /* for basename() on Solaris */ -#endif -/** * SECTION:igt_core * @short_description: Core i-g-t testing support
lib/igt_debugfs.c +0 -3
@@ -26,15 +26,12 @@#include <sys/stat.h> #include <sys/mount.h> #include <sys/sysmacros.h> -#include <dirent.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> -#include <limits.h> #include <string.h> #include <fcntl.h> #include <unistd.h> -#include <i915_drm.h> #include <poll.h> #include "drmtest.h"
lib/igt_device.c +0 -1
@@ -21,7 +21,6 @@* IN THE SOFTWARE. * */ -#include <sys/types.h> #include <fcntl.h> #include <sys/stat.h>
lib/igt_device_scan.c +0 -1
@@ -28,7 +28,6 @@#include "intel_chipset.h" #include <ctype.h> -#include <dirent.h> #include <fcntl.h> #include <glib.h> #include <libudev.h>
lib/igt_drm_fdinfo.c +0 -1
@@ -24,7 +24,6 @@#include <ctype.h> #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #include <string.h>
lib/igt_dummyload.c +0 -1
@@ -35,7 +35,6 @@#include "i915/gem_engine_topology.h" #include "i915/gem_mman.h" #include "i915/gem_submission.h" -#include "igt_aux.h" #include "igt_core.h" #include "igt_device.h" #include "igt_dummyload.h"
lib/igt_edid.c +0 -2
@@ -23,8 +23,6 @@* Authors: Simon Ser <[email protected]> */ -#include "config.h" -#include <assert.h> #include <string.h> #include <stdint.h>
lib/igt_eld.c +0 -4
@@ -23,12 +23,8 @@* Authors: Simon Ser <[email protected]> */ -#include "config.h" -#include <dirent.h> -#include <errno.h> #include <glob.h> -#include <stdint.h> #include <stdio.h> #include <string.h>
lib/igt_frame.c +0 -2
@@ -24,8 +24,6 @@* Paul Kocialkowski <[email protected]> */ -#include "config.h" -#include <fcntl.h> #include <pixman.h> #include <cairo.h>
lib/igt_gt.c +0 -5
@@ -26,14 +26,10 @@#include <strings.h> #include <signal.h> #include <errno.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <fcntl.h> #include "drmtest.h" #include "i915/gem.h" -#include "i915/gem_engine_topology.h" #include "igt_aux.h" #include "igt_core.h" #include "igt_gt.h"
@@ -41,7 +37,6 @@#include "igt_sysfs.h" #include "igt_debugfs.h" #include "ioctl_wrappers.h" -#include "intel_reg.h" #include "intel_chipset.h" #include "igt_dummyload.h"
lib/igt_infoframe.c +0 -2
@@ -23,8 +23,6 @@* Authors: Simon Ser <[email protected]> */ -#include "config.h" -#include <string.h> #include "igt_core.h"
lib/igt_kms.c +0 -3
@@ -34,7 +34,6 @@#include <stdio.h> #include <stdarg.h> #include <fcntl.h> -#include <sys/stat.h> #include <string.h> #include <stdlib.h> #ifdef HAVE_LINUX_KD_H
@@ -54,11 +53,9 @@#include "igt_kms.h" #include "igt_aux.h" #include "igt_edid.h" -#include "intel_chipset.h" #include "igt_debugfs.h" #include "igt_device.h" #include "igt_sysfs.h" -#include "sw_sync.h" #ifdef HAVE_CHAMELIUM #include "igt_chamelium.h" #endif
lib/igt_msm.c +0 -3
@@ -26,13 +26,10 @@#include <signal.h> #include <errno.h> #include <sys/mman.h> -#include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> -#include <fcntl.h> #include "drmtest.h" -#include "igt_aux.h" #include "igt_core.h" #include "igt_msm.h" #include "ioctl_wrappers.h"
lib/igt_nouveau.c +0 -1
@@ -32,7 +32,6 @@#include "igt_nouveau.h" #include "nouveau/nvif/push.h" -#include "nouveau/nvhw/class/cla0b5.h" #include "nouveau/priv.h" #define PASCAL_DMA_COPY_A (0x0000C0B5)
lib/igt_panfrost.c +1 -8
@@ -22,22 +22,15 @@* IN THE SOFTWARE. */ -#include <assert.h> #include <string.h> -#include <signal.h> +#include <stddef.h> #include <errno.h> #include <sys/mman.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <fcntl.h> #include "drmtest.h" -#include "igt_aux.h" #include "igt_core.h" #include "igt_panfrost.h" #include "ioctl_wrappers.h" -#include "intel_reg.h" #include "intel_chipset.h" #include "panfrost_drm.h" #include "panfrost-job.h"
lib/igt_params.c +0 -1
@@ -27,7 +27,6 @@#include <stdbool.h> #include <stdio.h> #include <sys/ioctl.h> -#include <sys/stat.h> #include <i915_drm.h>
lib/igt_pm.c +0 -1
@@ -34,7 +34,6 @@#include <unistd.h> #include <sys/stat.h> #include <sys/sysmacros.h> -#include <sys/types.h> #include <dirent.h> #include "drmtest.h"
lib/igt_primes.c +0 -1
@@ -24,7 +24,6 @@#include "igt_primes.h" #include <stdlib.h> -#include <stdbool.h> #include <string.h> #include <math.h>
lib/igt_rapl.c +0 -1
@@ -1,4 +1,3 @@ -#include <ctype.h> #include <errno.h> #include <fcntl.h> #include <locale.h>
lib/igt_sysfs.c +0 -5
@@ -25,7 +25,6 @@#include <inttypes.h> #include <sys/stat.h> #include <sys/sysmacros.h> -#include <sys/mount.h> #include <errno.h> #include <stdarg.h> #include <stdio.h>
@@ -34,14 +33,10 @@#include <string.h> #include <fcntl.h> #include <unistd.h> -#include <i915_drm.h> #include <dirent.h> -#include <unistd.h> -#include <fcntl.h> #include "igt_core.h" #include "igt_sysfs.h" -#include "igt_device.h" #include "igt_io.h" /**
lib/igt_thread.c +0 -2
@@ -22,8 +22,6 @@*/ #include <pthread.h> -#include <stdlib.h> -#include <stdatomic.h> #include "igt_core.h" #include "igt_thread.h"
lib/igt_v3d.c +0 -8
@@ -21,22 +21,14 @@* IN THE SOFTWARE. */ -#include <assert.h> #include <string.h> -#include <signal.h> #include <errno.h> #include <sys/mman.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <fcntl.h> #include "drmtest.h" -#include "igt_aux.h" #include "igt_core.h" #include "igt_v3d.h" #include "ioctl_wrappers.h" -#include "intel_reg.h" #include "intel_chipset.h" #include "v3d_drm.h"
lib/igt_vc4.c +0 -7
@@ -23,21 +23,14 @@#include <assert.h> #include <string.h> -#include <signal.h> #include <errno.h> #include <sys/mman.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <fcntl.h> #include "drmtest.h" -#include "igt_aux.h" #include "igt_core.h" #include "igt_fb.h" #include "igt_vc4.h" #include "ioctl_wrappers.h" -#include "intel_reg.h" #include "intel_chipset.h" #include "vc4_drm.h" #include "vc4_packet.h"
lib/igt_x86.c +0 -1
@@ -38,7 +38,6 @@#include "igt_x86.h" #include "igt_aux.h" -#include <stdint.h> #include <stdio.h> #include <string.h>
lib/instdone.c +0 -1
@@ -25,7 +25,6 @@* */ -#include <assert.h> #include "instdone.h" #include "intel_chipset.h"
lib/intel_allocator_msgchannel.c +0 -1
@@ -6,7 +6,6 @@#include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> -#include <sys/stat.h> #include <fcntl.h> #include "igt.h" #include "intel_allocator_msgchannel.h"
lib/intel_allocator_random.c +0 -2
@@ -3,10 +3,8 @@* Copyright © 2021 Intel Corporation */ -#include <sys/ioctl.h> #include <stdlib.h> #include "igt.h" -#include "igt_x86.h" #include "igt_rand.h" #include "intel_allocator.h"
lib/intel_allocator_reloc.c +0 -2
@@ -3,10 +3,8 @@* Copyright © 2021 Intel Corporation */ -#include <sys/ioctl.h> #include <stdlib.h> #include "igt.h" -#include "igt_x86.h" #include "igt_rand.h" #include "intel_allocator.h"
lib/intel_allocator_simple.c +0 -3
@@ -3,10 +3,7 @@* Copyright © 2021 Intel Corporation */ -#include <sys/ioctl.h> #include <stdlib.h> -#include "igt.h" -#include "igt_x86.h" #include "intel_allocator.h" #include "intel_bufops.h" #include "igt_map.h"
lib/intel_batchbuffer.c +0 -3
@@ -26,14 +26,11 @@**************************************************************************/ #include <inttypes.h> -#include <poll.h> #include <stdlib.h> #include <stdio.h> #include <string.h> -#include <assert.h> #include <search.h> -#include "drm.h" #include "drmtest.h" #include "i915/gem_create.h" #include "intel_batchbuffer.h"
lib/intel_chipset.c +0 -7
@@ -25,17 +25,10 @@* */ -#include <unistd.h> #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <errno.h> #include <err.h> -#include <assert.h> #include <sys/ioctl.h> -#include <fcntl.h> -#include <sys/stat.h> -#include <sys/mman.h> #include "i915_drm.h" #include "drmtest.h"
lib/intel_device_info.c +0 -2
@@ -2,8 +2,6 @@#include "i915_pciids.h" #include "i915_pciids_local.h" -#include <strings.h> /* ffs() */ -static const struct intel_device_info intel_generic_info = { .graphics_ver =0 , .display_ver =0 ,
lib/intel_iosf.c +0 -3
@@ -1,7 +1,4 @@#include <unistd.h> -#include <stdlib.h> -#include <stdio.h> -#include <err.h> #include <errno.h> #include "intel_io.h"
lib/intel_mmio.c +0 -7
@@ -28,16 +28,9 @@#include <unistd.h> #include <fcntl.h> -#include <stdio.h> -#include <stdarg.h> -#include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <string.h> -#include <errno.h> -#include <err.h> -#include <assert.h> -#include <sys/ioctl.h> #include <sys/stat.h> #include <sys/mman.h>
lib/intel_os.c +0 -5
@@ -34,11 +34,7 @@#include <stdio.h> #include <string.h> #include <errno.h> -#include <err.h> -#include <assert.h> -#include <sys/ioctl.h> #include <fcntl.h> -#include <sys/stat.h> #include <sys/mman.h> #ifdef HAVE_STRUCT_SYSINFO_TOTALRAM #include <sys/sysinfo.h>
@@ -47,7 +43,6 @@#endif #include <sys/resource.h> -#include "intel_io.h" #include "drmtest.h" #include "igt_aux.h" #include "igt_debugfs.h"
lib/intel_reg_map.c +0 -3
@@ -26,9 +26,6 @@*/ #include <stdio.h> -#include <stdarg.h> -#include <stdlib.h> -#include <sys/types.h> #include "intel_io.h" #include "intel_chipset.h"
lib/ioctl_wrappers.c +0 -15
@@ -26,25 +26,12 @@* */ -#ifdef HAVE_LIBGEN_H -#include <libgen.h> -#endif #include <stdio.h> #include <fcntl.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include <string.h> #include <sys/mman.h> -#include <signal.h> -#include <pciaccess.h> -#include <getopt.h> -#include <stdlib.h> #include <unistd.h> -#include <sys/wait.h> -#include <sys/types.h> -#include <sys/syscall.h> -#include <sys/utsname.h> -#include <termios.h> #include <errno.h> #include "drmtest.h"
@@ -52,8 +39,6 @@#include "i915/gem_create.h" #include "intel_batchbuffer.h" #include "intel_chipset.h" -#include "intel_io.h" -#include "igt_debugfs.h" #include "igt_sysfs.h" #include "igt_x86.h" #include "config.h"
lib/media_fill.c +0 -1
@@ -30,7 +30,6 @@#include "intel_reg.h" #include "drmtest.h" #include "gpu_cmds.h" -#include <assert.h> static const uint32_t gen7_media_kernel[][4 ] = { {0x00400001 ,0x20200231 ,0x00000020 ,0x00000000 },
lib/media_spin.c +0 -1
@@ -26,7 +26,6 @@#include <i915_drm.h> #include "intel_reg.h" -#include "drmtest.h" #include "intel_batchbuffer.h" #include "intel_chipset.h" #include "media_spin.h"
lib/nouveau/cea0b5.c +0 -2
@@ -22,8 +22,6 @@#include <inttypes.h> -#include <nouveau_drm.h> -#include "igt.h" #include "igt_nouveau.h"
lib/rendercopy_gen6.c +0 -11
@@ -1,15 +1,5 @@ -#include <assert.h> -#include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <assert.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include "drm.h" #include "i915_drm.h" #include "drmtest.h" #include "intel_bufops.h"
@@ -17,7 +7,6 @@#include "intel_io.h" #include "rendercopy.h" #include "gen6_render.h" -#include "intel_reg.h" #define VERTEX_SIZE (3*4)
lib/rendercopy_gen7.c +0 -11
@@ -1,15 +1,5 @@ -#include <assert.h> -#include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <assert.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include "drm.h" #include "i915_drm.h" #include "drmtest.h" #include "intel_bufops.h"
@@ -18,7 +8,6 @@#include "intel_chipset.h" #include "rendercopy.h" #include "gen7_render.h" -#include "intel_reg.h" #if DEBUG_RENDERCPY static void dump_batch (struct intel_bb *ibb)
lib/rendercopy_gen8.c +0 -13
@@ -1,26 +1,13 @@ -#include <assert.h> -#include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <assert.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <drm.h> #include <i915_drm.h> -#include "drmtest.h" #include "intel_bufops.h" #include "intel_batchbuffer.h" #include "intel_chipset.h" -#include "intel_io.h" #include "rendercopy.h" #include "gen8_render.h" -#include "intel_reg.h" #include "igt_aux.h" #define VERTEX_SIZE (3*4)
lib/rendercopy_gen9.c +0 -13
@@ -1,24 +1,11 @@ -#include <assert.h> -#include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <assert.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <getopt.h> -#include <drm.h> #include <i915_drm.h> -#include "drmtest.h" #include "intel_aux_pgtable.h" #include "intel_bufops.h" #include "intel_batchbuffer.h" -#include "intel_io.h" #include "rendercopy.h" #include "gen9_render.h" #include "intel_reg.h"
lib/rendercopy_i830.c +0 -9
@@ -1,14 +1,5 @@ -#include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <assert.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include "drm.h" #include "i915_drm.h" #include "drmtest.h" #include "intel_bufops.h"
lib/rendercopy_i915.c +0 -9
@@ -1,14 +1,5 @@ -#include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <assert.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include "drm.h" #include "i915_drm.h" #include "drmtest.h" #include "intel_bufops.h"
lib/sw_sync.c +0 -3
@@ -24,9 +24,6 @@* Robert Foss <[email protected]> */ -#ifdef HAVE_LIBGEN_H -#include <libgen.h> -#endif #include <fcntl.h> #include <poll.h> #include <stdbool.h>
lib/tests/igt_assert.c +0 -3
@@ -22,7 +22,6 @@* */ -#include <errno.h> #include <float.h> #include <limits.h> #include <math.h>
@@ -30,8 +29,6 @@#include <stdint.h> #include <stdlib.h> #include <unistd.h> -#include <sys/types.h> -#include <sys/wait.h> #include "igt_core.h" #include "drmtest.h"
lib/tests/igt_audio.c +0 -2
@@ -23,8 +23,6 @@* Author: Simon Ser <[email protected]> */ -#include "config.h" -#include <stdlib.h> #include "igt_core.h"
lib/tests/igt_conflicting_args.c +0 -2
@@ -27,8 +27,6 @@*/ #include <signal.h> -#include <sys/wait.h> -#include <errno.h> #include "drmtest.h" #include "igt_core.h"
lib/tests/igt_describe.c +0 -1
@@ -23,7 +23,6 @@#include <sys/wait.h> #include <string.h> -#include <stdlib.h> #include "drmtest.h" #include "igt_tests_common.h"
lib/tests/igt_dynamic_subtests.c +0 -1
@@ -21,7 +21,6 @@* IN THE SOFTWARE. */ -#include <errno.h> #include <sys/wait.h> #include "igt_core.h"
lib/tests/igt_edid.c +0 -2
@@ -23,8 +23,6 @@* Authors: Simon Ser <[email protected]> */ -#include "config.h" -#include <stdbool.h> #include "igt_core.h"
lib/tests/igt_exit_handler.c +0 -1
@@ -23,7 +23,6 @@#include <unistd.h> #include <fcntl.h> -#include <sys/types.h> #include <sys/wait.h> #include "igt_core.h" #include "drmtest.h"
lib/tests/igt_fork.c +0 -1
@@ -23,7 +23,6 @@*/ #include <errno.h> -#include <stdint.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h>
lib/tests/igt_fork_helper.c +0 -1
@@ -25,7 +25,6 @@* */ -#include "drmtest.h" #include "igt_aux.h" int main (int argc,char **argv)
lib/tests/igt_invalid_subtest_name.c +0 -1
@@ -21,7 +21,6 @@* IN THE SOFTWARE. */ -#include <errno.h> #include <sys/wait.h> #include "igt_core.h"
lib/tests/igt_segfault.c +0 -3
@@ -35,10 +35,7 @@*/ #include <signal.h> -#include <stdlib.h> -#include <sys/wait.h> #include <sys/types.h> -#include <errno.h> #include "drmtest.h" #include "igt_core.h"
lib/tests/igt_simulation.c +0 -3
@@ -26,11 +26,8 @@*/ #include <stdlib.h> -#include <sys/wait.h> #include <sys/types.h> -#include <errno.h> -#include "drmtest.h" #include "igt_core.h" #include "igt_tests_common.h"
lib/veboxcopy_gen12.c +0 -1
@@ -20,7 +20,6 @@* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ -#include <drm.h> #include "igt.h" #include "intel_aux_pgtable.h"
Signature · 1 line
2.36.1
PATCH 2/14 assembler: Remove unused headers
Using CLion's automated code inspection, most unused includes were found and removed. Some warnings remain as CLion is unable to track code usage across certain attributes, but the vast majority of unneeded headers are now gone.
--- assembler/brw_disasm.c | 3 --- assembler/brw_eu_util.c | 1 - assembler/disasm-main.c | 1 - assembler/gen8_disasm.c | 3 --- 4 files changed, 8 deletions(-)
assembler/brw_disasm.c +0 -3
@@ -21,10 +21,7 @@*/ #include <stdio.h> -#include <stdlib.h> #include <string.h> -#include <getopt.h> -#include <unistd.h> #include <stdarg.h> #include "brw_compat.h"
assembler/brw_eu_util.c +0 -1
@@ -30,7 +30,6 @@*/ -#include "brw_context.h" #include "brw_defines.h" #include "brw_eu.h"
assembler/disasm-main.c +0 -1
@@ -24,7 +24,6 @@#include <stdlib.h> #include <string.h> #include <getopt.h> -#include <unistd.h> #include "gen4asm.h" #include "brw_eu.h"
assembler/gen8_disasm.c +0 -3
@@ -21,10 +21,7 @@*/ #include <stdio.h> -#include <stdlib.h> #include <string.h> -#include <getopt.h> -#include <unistd.h> #include <stdarg.h> #include "brw_context.h"
Signature · 1 line
2.36.1
PATCH 3/14 benchmarks: Remove unused headers
In reply to Ryszard KnopUsing CLion's automated code inspection, most unused includes were found and removed. Some warnings remain as CLion is unable to track code usage across certain attributes, but the vast majority of unneeded headers are now gone.
--- benchmarks/gem_blt.c | 5 ----- benchmarks/gem_busy.c | 5 ----- benchmarks/gem_create.c | 6 ------ benchmarks/gem_exec_ctx.c | 7 ------- benchmarks/gem_exec_fault.c | 7 ------- benchmarks/gem_exec_nop.c | 8 -------- benchmarks/gem_exec_reloc.c | 6 ------ benchmarks/gem_exec_trace.c | 5 ----- benchmarks/gem_exec_tracer.c | 6 ------ benchmarks/gem_latency.c | 7 ------- benchmarks/gem_prw.c | 7 ------- benchmarks/gem_set_domain.c | 8 -------- benchmarks/gem_syslatency.c | 6 ------ benchmarks/gem_userptr_benchmark.c | 8 -------- benchmarks/gem_wsim.c | 6 ------ benchmarks/intel_upload_blit_large.c | 6 ------ benchmarks/intel_upload_blit_large_gtt.c | 5 ----- benchmarks/intel_upload_blit_large_map.c | 5 ----- benchmarks/intel_upload_blit_small.c | 4 ---- benchmarks/kms_vblank.c | 5 ----- benchmarks/prime_lookup.c | 6 ------ benchmarks/vgem_mmap.c | 5 ----- 22 files changed, 133 deletions(-)
benchmarks/gem_blt.c +0 -5
@@ -31,12 +31,7 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> #include <math.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <time.h>
benchmarks/gem_busy.c +0 -5
@@ -30,13 +30,9 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> #include <sys/poll.h> #include <sys/ioctl.h> -#include <sys/time.h> #include <time.h> #include "drm.h"
@@ -44,7 +40,6 @@#include "drmtest.h" #include "intel_chipset.h" #include "intel_reg.h" -#include "igt_stats.h" #include "i915/gem_create.h" #include "i915/gem_mman.h"
benchmarks/gem_create.c +0 -6
@@ -30,15 +30,9 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <time.h> -#include "drm.h" #include "drmtest.h" #include "i915/gem_create.h" #include "igt_aux.h"
benchmarks/gem_exec_ctx.c +0 -7
@@ -30,20 +30,13 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <time.h> #include "drm.h" #include "drmtest.h" #include "i915/gem_create.h" -#include "intel_io.h" #include "intel_reg.h" -#include "igt_stats.h" #include "ioctl_wrappers.h" enum mode {NOP ,CREATE ,SWITCH ,DEFAULT };
benchmarks/gem_exec_fault.c +0 -7
@@ -32,19 +32,12 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <time.h> -#include "drm.h" #include "drmtest.h" #include "i915/gem_create.h" #include "i915/gem_submission.h" -#include "igt_stats.h" #include "intel_allocator.h" #include "intel_io.h" #include "intel_reg.h"
benchmarks/gem_exec_nop.c +0 -8
@@ -30,19 +30,11 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <time.h> -#include "drm.h" #include "drmtest.h" #include "i915/gem_create.h" -#include "igt_stats.h" -#include "intel_io.h" #include "intel_reg.h" #include "ioctl_wrappers.h"
benchmarks/gem_exec_reloc.c +0 -6
@@ -30,17 +30,11 @@#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> #include <sys/time.h> -#include "drm.h" #include "drmtest.h" #include "i915/gem_create.h" #include "i915/gem_mman.h" -#include "igt_debugfs.h" #include "intel_reg.h" #include "ioctl_wrappers.h"
benchmarks/gem_exec_trace.c +0 -5
@@ -31,10 +31,7 @@#include <stdio.h> #include <string.h> #include <fcntl.h> -#include <inttypes.h> -#include <errno.h> #include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <time.h> #include <assert.h>
@@ -42,8 +39,6 @@#include "drm.h" #include "drmtest.h" #include "i915/gem_create.h" -#include "igt_stats.h" -#include "intel_io.h" #include "ioctl_wrappers.h" enum {
benchmarks/gem_exec_tracer.c +0 -6
@@ -25,22 +25,16 @@#include <stdio.h> #include <string.h> #include <stdint.h> -#include <stdbool.h> #include <stdarg.h> #include <fcntl.h> #include <sys/types.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include <unistd.h> #include <errno.h> -#include <sys/mman.h> #include <dlfcn.h> #include <i915_drm.h> #include <pthread.h> -#include "intel_aub.h" -#include "intel_chipset.h" -static int (*libc_close)(int fd);static int (*libc_ioctl)(int fd,unsigned long request,void *argp);
benchmarks/gem_latency.c +0 -7
@@ -32,17 +32,10 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <limits.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <sys/time.h> #include <sys/poll.h> #include <sys/resource.h> -#include "drm.h" #include "i915/gem_create.h" #include "igt.h" #include "igt_device.h"
benchmarks/gem_prw.c +0 -7
@@ -30,18 +30,11 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <time.h> -#include "drm.h" #include "drmtest.h" #include "i915/gem_create.h" -#include "igt_aux.h" #include "igt_stats.h" #include "ioctl_wrappers.h"
benchmarks/gem_set_domain.c +0 -8
@@ -29,19 +29,11 @@#include <stdlib.h> #include <stdint.h> #include <stdio.h> -#include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <time.h> -#include "drm.h" #include "drmtest.h" #include "i915/gem_create.h" -#include "igt_aux.h" #include "ioctl_wrappers.h" static double elapsed(const struct timespec *start,
benchmarks/gem_syslatency.c +0 -6
@@ -30,19 +30,13 @@#include <string.h> #include <fcntl.h> #include <ftw.h> -#include <inttypes.h> #include <pthread.h> #include <sched.h> #include <signal.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <time.h> #include <limits.h> -#include "drm.h" - -#include <linux/unistd.h> #include "i915/gem_create.h" #include "i915/gem_ring.h"
benchmarks/gem_userptr_benchmark.c +0 -8
@@ -35,21 +35,13 @@#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> #include <assert.h> -#include <sys/stat.h> -#include <sys/time.h> #include <sys/mman.h> #include <signal.h> -#include "drm.h" -#include "i915_drm.h" -#include "drmtest.h" -#include "intel_batchbuffer.h" -#include "intel_chipset.h" #include "ioctl_wrappers.h" #include "igt_aux.h"
benchmarks/gem_wsim.c +0 -6
@@ -29,16 +29,12 @@#include <stdio.h> #include <string.h> #include <fcntl.h> -#include <inttypes.h> #include <errno.h> #include <poll.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/ioctl.h> -#include <sys/time.h> -#include <sys/wait.h> #include <time.h> -#include <assert.h> #include <limits.h> #include <pthread.h> #include <math.h>
@@ -50,10 +46,8 @@#include "intel_reg.h" #include "ioctl_wrappers.h" -#include "intel_io.h" #include "igt_aux.h" #include "igt_rand.h" -#include "igt_perf.h" #include "sw_sync.h" #include "i915/gem_create.h"
benchmarks/intel_upload_blit_large.c +0 -6
@@ -45,17 +45,11 @@*/ #include "igt.h" -#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <assert.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> #include <sys/time.h> -#include <drm.h> #include <i915_drm.h> #define OBJECT_WIDTH 1280
benchmarks/intel_upload_blit_large_gtt.c +0 -5
@@ -45,14 +45,9 @@*/ #include "igt.h" -#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <assert.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> #include <sys/time.h> #define OBJECT_WIDTH 1280
benchmarks/intel_upload_blit_large_map.c +0 -5
@@ -48,14 +48,9 @@*/ #include "igt.h" -#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <assert.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> #include <sys/time.h> #define OBJECT_WIDTH 1280
benchmarks/intel_upload_blit_small.c +0 -4
@@ -44,11 +44,7 @@#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <assert.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> #include <sys/time.h> /* Happens to be 128k, the size of the VBOs used by i965's Mesa driver. */
benchmarks/kms_vblank.c +0 -5
@@ -30,13 +30,8 @@#include <stdio.h> #include <string.h> #include <unistd.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> #include <time.h> -#include <sys/stat.h> #include <sys/time.h> -#include <sys/wait.h> #include <drm.h> #include <xf86drm.h>
benchmarks/prime_lookup.c +0 -6
@@ -27,16 +27,10 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/resource.h> #include <sys/time.h> #include <time.h> -#include "drm.h" #include "drmtest.h" #include "i915/gem_create.h" #include "igt_rand.h"
benchmarks/vgem_mmap.c +0 -5
@@ -27,11 +27,6 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <time.h>
Signature · 1 line
2.36.1
PATCH 4/14 overlay: Remove unused headers
In reply to Ryszard KnopUsing CLion's automated code inspection, most unused includes were found and removed. Some warnings remain as CLion is unable to track code usage across certain attributes, but the vast majority of unneeded headers are now gone.
--- overlay/config.c | 2 -- overlay/gem-interrupts.c | 1 - overlay/gpu-top.c | 5 ----- overlay/kms/kms-overlay.c | 2 -- overlay/overlay.c | 2 -- overlay/power.c | 3 --- overlay/rc6.c | 1 - overlay/x11/dri2.c | 1 - overlay/x11/position.c | 3 --- overlay/x11/x11-overlay.c | 2 -- overlay/x11/x11-window.c | 2 -- 11 files changed, 24 deletions(-)
overlay/config.c +0 -2
@@ -22,7 +22,6 @@* */ -#include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <stdlib.h>
@@ -31,7 +30,6 @@#include <ctype.h> #include <unistd.h> #include <fcntl.h> -#include <errno.h> #include "overlay.h"
overlay/gem-interrupts.c +0 -1
@@ -22,7 +22,6 @@* */ -#include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <errno.h>
overlay/gpu-top.c +0 -5
@@ -23,13 +23,8 @@*/ #include <stdint.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> #include <unistd.h> -#include <fcntl.h> -#include <errno.h> -#include <assert.h> #include "igt_perf.h"
overlay/kms/kms-overlay.c +0 -2
@@ -22,7 +22,6 @@* */ -#include <sys/types.h> #include <sys/mman.h> #include <cairo.h> #include <stdio.h>
@@ -38,7 +37,6 @@#include <xf86drmMode.h> #include <i915_drm.h> #include "../overlay.h" -//#include "rgb2yuv.h" #ifndef ALIGN #define ALIGN (i,m) (((i) + (m) - 1) & ~((m) - 1))
overlay/overlay.c +0 -2
@@ -23,7 +23,6 @@*/ #include <sys/types.h> -#include <sys/mman.h> #include <cairo.h> #include <stdio.h> #include <stdlib.h>
@@ -39,7 +38,6 @@#include "overlay.h" #include "chart.h" -#include "config.h" #include "cpu-top.h" #include "debugfs.h" #include "gem-interrupts.h"
overlay/power.c +0 -3
@@ -24,11 +24,9 @@#include <stdint.h> #include <stdlib.h> -#include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> -#include <time.h> #include <errno.h> #include <ctype.h> #include <locale.h>
@@ -37,7 +35,6 @@#include "igt_perf.h" #include "power.h" -#include "debugfs.h" static int filename_to_buf (const char *filename,char *buf,unsigned int bufsize)
overlay/rc6.c +0 -1
@@ -24,7 +24,6 @@#include <sys/stat.h> #include <stdlib.h> -#include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h>
overlay/x11/dri2.c +0 -1
@@ -30,7 +30,6 @@* Kristian Høgsberg ([email protected]) */ -#include <stdio.h> #include <X11/Xlibint.h> #include <X11/extensions/Xext.h> #include <X11/extensions/extutil.h>
overlay/x11/position.c +0 -3
@@ -22,15 +22,12 @@* */ -#include "config.h" -#include <X11/Xlib.h> #ifdef HAVE_XRANDR #include <X11/extensions/Xrandr.h> #endif #include <string.h> #include <stdio.h> -#include <stdlib.h> #include "position.h" #include "../overlay.h"
overlay/x11/x11-overlay.c +0 -2
@@ -24,10 +24,8 @@#include <X11/Xlib.h> #include <X11/extensions/Xvlib.h> -#include <sys/types.h> #include <sys/mman.h> #include <cairo.h> -#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h>
overlay/x11/x11-window.c +0 -2
@@ -25,11 +25,9 @@#include <X11/Xlib.h> #include <cairo.h> #include <cairo-xlib.h> -#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> -#include <unistd.h> #include "../overlay.h" #include "position.h"
Signature · 1 line
2.36.1
PATCH 5/14 runner: Remove unused headers
In reply to Ryszard KnopUsing CLion's automated code inspection, most unused includes were found and removed. Some warnings remain as CLion is unable to track code usage across certain attributes, but the vast majority of unneeded headers are now gone.
--- runner/job_list.c | 2 -- runner/resultgen.c | 1 - runner/results.c | 2 -- runner/resume.c | 2 -- runner/runner.c | 1 - runner/runner_json_tests.c | 1 - runner/settings.c | 1 - 7 files changed, 10 deletions(-)
runner/job_list.c +0 -2
@@ -1,12 +1,10 @@#include <ctype.h> #include <errno.h> #include <fcntl.h> -#include <linux/limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> -#include <sys/types.h> #include <unistd.h> #include "job_list.h"
runner/resultgen.c +0 -1
@@ -5,7 +5,6 @@#include <string.h> #include <sys/mman.h> #include <sys/stat.h> -#include <sys/types.h> #include <unistd.h> #include <json.h>
runner/results.c +0 -2
@@ -1,8 +1,6 @@#include <fcntl.h> #include <stdio.h> #include <stdlib.h> -#include <sys/stat.h> -#include <sys/types.h> #include "resultgen.h"
runner/resume.c +0 -2
@@ -2,8 +2,6 @@#include <fcntl.h> #include <stdio.h> #include <string.h> -#include <sys/stat.h> -#include <sys/types.h> #include "settings.h" #include "job_list.h"
runner/runner.c +0 -1
@@ -1,5 +1,4 @@#include <stdio.h> -#include <string.h> #include "settings.h" #include "job_list.h"
runner/runner_json_tests.c +0 -1
@@ -1,5 +1,4 @@#include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <json.h>
runner/settings.c +0 -1
@@ -10,7 +10,6 @@#include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/types.h> #include <sys/stat.h> #include <sys/utsname.h> #include <unistd.h>
Signature · 1 line
2.36.1
PATCH 6/14 tests/amdgpu: Remove unused headers
In reply to Ryszard KnopUsing CLion's automated code inspection, most unused includes were found and removed. Some warnings remain as CLion is unable to track code usage across certain attributes, but the vast majority of unneeded headers are now gone.
--- tests/amdgpu/amd_abm.c | 2 -- tests/amdgpu/amd_assr.c | 2 -- tests/amdgpu/amd_basic.c | 5 +---- tests/amdgpu/amd_dp_dsc.c | 1 - tests/amdgpu/amd_ilr.c | 4 ---- tests/amdgpu/amd_info.c | 2 -- 6 files changed, 1 insertion(+), 15 deletions(-)
tests/amdgpu/amd_abm.c +0 -2
@@ -20,7 +20,6 @@* OTHER DEALINGS IN THE SOFTWARE. */ -#include "igt.h" #include "drmtest.h" #include "igt_kms.h" #include <limits.h>
@@ -30,7 +29,6 @@#include <stdio.h> #include <string.h> #include <fcntl.h> -#include <time.h> #define DEBUGFS_CURRENT_BACKLIGHT_PWM "amdgpu_current_backlight_pwm"#define DEBUGFS_TARGET_BACKLIGHT_PWM "amdgpu_target_backlight_pwm"
tests/amdgpu/amd_assr.c +0 -2
@@ -24,8 +24,6 @@#include "igt_sysfs.h" #include <dirent.h> #include <fcntl.h> -#include <limits.h> -#include <sys/types.h> #include <sys/stat.h> IGT_TEST_DESCRIPTION("Check if ASSR is enabled on eDP links that support "
tests/amdgpu/amd_basic.c +1 -4
@@ -22,13 +22,10 @@* Based on libdrm/tests/amdgpu/basic_tests.c */ -#include "config.h" - -#include <stdio.h> #include <stdlib.h> #include <unistd.h> #ifdef HAVE_ALLOCA_H -# include <alloca.h> +#include <alloca.h> #endif #include "drmtest.h"
tests/amdgpu/amd_dp_dsc.c +0 -1
@@ -22,7 +22,6 @@#include "igt.h" #include "igt_amd.h" -#include "sw_sync.h" #include <fcntl.h> #include <signal.h>
tests/amdgpu/amd_ilr.c +0 -4
@@ -22,11 +22,7 @@#include "igt.h" #include "igt_amd.h" -#include "igt_sysfs.h" #include <dirent.h> -#include <fcntl.h> -#include <limits.h> -#include <sys/types.h> #include <sys/stat.h> #define MULTIPLIER_TO_LR 270000
tests/amdgpu/amd_info.c +0 -2
@@ -21,8 +21,6 @@* OTHER DEALINGS IN THE SOFTWARE. */ -#include "config.h" -#include "igt.h" #include <amdgpu.h>
Signature · 1 line
2.36.1
PATCH 7/14 tests/vc4*: Remove unused headers
In reply to Ryszard KnopUsing CLion's automated code inspection, most unused includes were found and removed. Some warnings remain as CLion is unable to track code usage across certain attributes, but the vast majority of unneeded headers are now gone.
--- tests/vc4_create_bo.c | 5 ----- tests/vc4_dmabuf_poll.c | 5 ----- tests/vc4_label_bo.c | 6 ------ tests/vc4_lookup_fail.c | 5 ----- tests/vc4_purgeable_bo.c | 5 ----- tests/vc4_tiling.c | 7 ------- tests/vc4_wait_bo.c | 4 ---- tests/vc4_wait_seqno.c | 6 ------ 8 files changed, 43 deletions(-)
tests/vc4_create_bo.c +0 -5
@@ -24,14 +24,9 @@#include "igt.h" #include "igt_vc4.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include "vc4_drm.h" igt_main
tests/vc4_dmabuf_poll.c +0 -5
@@ -24,14 +24,9 @@#include "igt.h" #include "igt_vc4.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <poll.h> #include "vc4_drm.h"
tests/vc4_label_bo.c +0 -6
@@ -24,15 +24,9 @@#include "igt.h" #include "igt_vc4.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <poll.h> #include "vc4_drm.h" static void
tests/vc4_lookup_fail.c +0 -5
@@ -24,14 +24,9 @@#include "igt.h" #include <assert.h> #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include "vc4_drm.h" #include "vc4_packet.h"
tests/vc4_purgeable_bo.c +0 -5
@@ -26,13 +26,8 @@#include <unistd.h> #include <signal.h> #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include "vc4_drm.h" struct igt_vc4_bo {
tests/vc4_tiling.c +0 -7
@@ -24,15 +24,8 @@#include "igt.h" #include "igt_vc4.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <poll.h> #include "vc4_drm.h" igt_main
tests/vc4_wait_bo.c +0 -4
@@ -24,13 +24,9 @@#include "igt.h" #include "igt_vc4.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include "vc4_drm.h"
tests/vc4_wait_seqno.c +0 -6
@@ -23,14 +23,8 @@#include "igt.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include "vc4_drm.h" igt_main
Signature · 1 line
2.36.1
PATCH 8/14 tests/v3d*: Remove unused headers
In reply to Ryszard KnopUsing CLion's automated code inspection, most unused includes were found and removed. Some warnings remain as CLion is unable to track code usage across certain attributes, but the vast majority of unneeded headers are now gone.
--- tests/v3d_get_bo_offset.c | 7 ------- tests/v3d_get_param.c | 7 ------- tests/v3d_mmap.c | 9 --------- 3 files changed, 23 deletions(-)
tests/v3d_get_bo_offset.c +0 -7
@@ -24,17 +24,10 @@#include "igt.h" #include "igt_v3d.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <poll.h> #include "v3d_drm.h" -#include "igt_v3d.h" igt_main {
tests/v3d_get_param.c +0 -7
@@ -24,17 +24,10 @@#include "igt.h" #include "igt_v3d.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <poll.h> #include "v3d_drm.h" -#include "igt_v3d.h" igt_main {
tests/v3d_mmap.c +0 -9
@@ -22,19 +22,10 @@*/ #include "igt.h" -#include "igt_v3d.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <poll.h> #include "v3d_drm.h" -#include "igt_v3d.h" igt_main {
Signature · 1 line
2.36.1
PATCH 9/14 tests/panfrost*: Remove unused headers
In reply to Ryszard KnopUsing CLion's automated code inspection, most unused includes were found and removed. Some warnings remain as CLion is unable to track code usage across certain attributes, but the vast majority of unneeded headers are now gone.
--- tests/panfrost_gem_new.c | 5 ----- tests/panfrost_get_param.c | 6 ------ tests/panfrost_prime.c | 5 ----- tests/panfrost_submit.c | 4 ---- 4 files changed, 20 deletions(-)
tests/panfrost_gem_new.c +0 -5
@@ -25,14 +25,9 @@#include "igt.h" #include "igt_panfrost.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include "panfrost_drm.h" igt_main
tests/panfrost_get_param.c +0 -6
@@ -25,15 +25,9 @@#include "igt.h" #include "igt_panfrost.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <poll.h> #include "panfrost_drm.h" igt_main
tests/panfrost_prime.c +0 -5
@@ -25,14 +25,9 @@#include "igt.h" #include "igt_panfrost.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include "panfrost_drm.h" static bool igt_has_dumb (int fd)
tests/panfrost_submit.c +0 -4
@@ -26,14 +26,10 @@#include "igt_panfrost.h" #include "igt_syncobj.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> #include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include "panfrost-job.h" #include "panfrost_drm.h"
Signature · 1 line
2.36.1
PATCH 10/14 tests/kms*: Remove unused headers
In reply to Ryszard KnopUsing CLion's automated code inspection, most unused includes were found and removed. Some warnings remain as CLion is unable to track code usage across certain attributes, but the vast majority of unneeded headers are now gone.
--- tests/kms_addfb_basic.c | 4 ---- tests/kms_atomic.c | 2 -- tests/kms_atomic_transition.c | 1 - tests/kms_bw.c | 1 - tests/kms_chamelium.c | 2 -- tests/kms_content_protection.c | 1 - tests/kms_cursor_edge_walk.c | 1 - tests/kms_dither.c | 2 -- tests/kms_dp_aux_dev.c | 4 ---- tests/kms_flip_event_leak.c | 3 --- tests/kms_getfb.c | 6 ------ tests/kms_hdmi_inject.c | 2 -- tests/kms_hdr.c | 2 -- tests/kms_lease.c | 6 ------ tests/kms_panel_fitting.c | 1 - tests/kms_pipe_crc_basic.c | 1 - tests/kms_plane.c | 1 - tests/kms_plane_lowres.c | 2 -- tests/kms_plane_multiple.c | 1 - tests/kms_plane_scaling.c | 1 - tests/kms_prime.c | 2 -- tests/kms_prop_blob.c | 2 -- tests/kms_properties.c | 2 -- tests/kms_rmfb.c | 2 -- tests/kms_sequence.c | 3 --- tests/kms_setmode.c | 2 -- tests/kms_vblank.c | 3 --- tests/kms_writeback.c | 1 - 28 files changed, 61 deletions(-)
tests/kms_addfb_basic.c +0 -4
@@ -27,14 +27,10 @@#include "igt.h" #include <unistd.h> -#include <stdlib.h> #include <stdio.h> #include <string.h> #include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include "drm.h" #include "drm_fourcc.h"
tests/kms_atomic.c +0 -2
@@ -32,8 +32,6 @@*/ #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <stdint.h> #include <string.h> #include <errno.h>
tests/kms_atomic_transition.c +0 -1
@@ -30,7 +30,6 @@#include <stdbool.h> #include <stdio.h> #include <string.h> -#include <time.h> #include <poll.h> #ifndef DRM_CAP_CURSOR_WIDTH
tests/kms_bw.c +0 -1
@@ -22,7 +22,6 @@#include "drm_mode.h" #include "igt.h" -#include "drm.h" #include <stdio.h> #include <xf86drmMode.h>
tests/kms_chamelium.c +0 -2
@@ -24,9 +24,7 @@* Lyude Paul <[email protected]> */ -#include "config.h" #include "igt.h" -#include "igt_vc4.h" #include "igt_edid.h" #include "igt_eld.h" #include "igt_infoframe.h"
tests/kms_content_protection.c +0 -1
@@ -24,7 +24,6 @@#include <poll.h> #include <fcntl.h> -#include <sys/epoll.h> #include <sys/stat.h> #include <libudev.h> #include "igt.h"
tests/kms_cursor_edge_walk.c +0 -1
@@ -24,7 +24,6 @@#include "igt.h" #include <errno.h> -#include <limits.h> #include <stdbool.h> #include <stdio.h> #include <string.h>
tests/kms_dither.c +0 -2
@@ -26,8 +26,6 @@*/ #include "igt.h" -#include <fcntl.h> -#include <termios.h> #include <unistd.h> IGT_TEST_DESCRIPTION ("Test Dithering block status" );
tests/kms_dp_aux_dev.c +0 -4
@@ -22,10 +22,6 @@* */ -#include "config.h" - -#include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <dirent.h>
tests/kms_flip_event_leak.c +0 -3
@@ -23,9 +23,6 @@*/ #include "igt.h" -#include <errno.h> -#include <stdbool.h> -#include <stdio.h> #include <string.h> #include "igt_device.h"
tests/kms_getfb.c +0 -6
@@ -30,18 +30,12 @@#include "igt.h" #include <unistd.h> #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include "drm.h" #include "drm_fourcc.h" -#include "i915/gem_create.h" -#include "igt_device.h" IGT_TEST_DESCRIPTION ("Tests GETFB and GETFB2 ioctls." );
tests/kms_hdmi_inject.c +0 -2
@@ -22,8 +22,6 @@* */ -#include "config.h" -#include <dirent.h> #include "igt.h"
tests/kms_hdr.c +0 -2
@@ -21,8 +21,6 @@*/ #include "igt.h" -#include <fcntl.h> -#include <termios.h> #include <unistd.h> #include "igt_edid.h"
tests/kms_lease.c +0 -6
@@ -34,14 +34,8 @@#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <time.h> -#include <sys/poll.h> -#include <sys/stat.h> -#include <sys/time.h> #include <sys/wait.h> -#include <libudev.h> -#include <drm.h> #include "igt_device.h"
tests/kms_panel_fitting.c +0 -1
@@ -23,7 +23,6 @@*/ #include "igt.h" -#include <math.h> #include <sys/stat.h> IGT_TEST_DESCRIPTION ("Test display panel fitting" );
tests/kms_pipe_crc_basic.c +0 -1
@@ -25,7 +25,6 @@#include "igt.h" #include "igt_sysfs.h" #include <errno.h> -#include <stdbool.h> #include <stdio.h> #include <string.h> #include <fcntl.h>
tests/kms_plane.c +0 -1
@@ -26,7 +26,6 @@#include "igt.h" #include "igt_vec.h" -#include <errno.h> #include <stdbool.h> #include <stdio.h> #include <string.h>
tests/kms_plane_lowres.c +0 -2
@@ -24,11 +24,9 @@#include "igt.h" #include "drmtest.h" -#include <errno.h> #include <stdbool.h> #include <stdio.h> #include <string.h> -#include <time.h> IGT_TEST_DESCRIPTION ("Test atomic mode setting with a plane by switching between high and low resolutions" );
tests/kms_plane_multiple.c +0 -1
@@ -24,7 +24,6 @@#include "igt.h" #include "drmtest.h" -#include <errno.h> #include <stdbool.h> #include <stdio.h> #include <string.h>
tests/kms_plane_scaling.c +0 -1
@@ -24,7 +24,6 @@#include "igt.h" #include "igt_vec.h" -#include <math.h> IGT_TEST_DESCRIPTION ("Test display plane scaling" );
tests/kms_prime.c +0 -2
@@ -24,8 +24,6 @@#include "igt.h" #include "igt_device.h" -#include <sys/ioctl.h> -#include <sys/poll.h> #include <time.h> struct dumb_bo {
tests/kms_prop_blob.c +0 -2
@@ -27,8 +27,6 @@#include "igt.h" #include <errno.h> -#include <stdbool.h> -#include <stdio.h> #include <string.h> IGT_TEST_DESCRIPTION ("Tests behaviour of mass-data 'blob' properties." );
tests/kms_properties.c +0 -2
@@ -25,9 +25,7 @@#include "drmtest.h" #include <errno.h> #include <stdbool.h> -#include <stdio.h> #include <string.h> -#include <time.h> struct additional_test {const char *name;
tests/kms_rmfb.c +0 -2
@@ -23,11 +23,9 @@#include "igt.h" #include "drmtest.h" -#include <errno.h> #include <stdbool.h> #include <stdio.h> #include <string.h> -#include <time.h> #ifndef DRM_CAP_CURSOR_WIDTH #define DRM_CAP_CURSOR_WIDTH 0x8
tests/kms_sequence.c +0 -3
@@ -31,13 +31,10 @@#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> #include <time.h> #include <sys/poll.h> -#include <sys/stat.h> -#include <sys/time.h> #include <sys/wait.h> #include <drm.h>
tests/kms_setmode.c +0 -2
@@ -20,7 +20,6 @@* Authors: * Imre Deak <[email protected]> */ -#include "config.h" #include "igt.h" #include <cairo.h>
@@ -28,7 +27,6 @@#include <stdint.h> #include <unistd.h> #include <string.h> -#include <sys/time.h> #include <math.h> #define MAX_CONNECTORS 10
tests/kms_vblank.c +0 -3
@@ -30,13 +30,10 @@#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> #include <time.h> #include <sys/poll.h> -#include <sys/stat.h> -#include <sys/time.h> #include <sys/wait.h> #include <drm.h>
tests/kms_writeback.c +0 -1
@@ -24,7 +24,6 @@#include <errno.h> #include <stdbool.h> -#include <stdio.h> #include <string.h> #include "igt.h"
Signature · 1 line
2.36.1
PATCH 11/14 tests/*: Remove unused headers
In reply to Ryszard KnopUsing CLion's automated code inspection, most unused includes were found and removed. Some warnings remain as CLion is unable to track code usage across certain attributes, but the vast majority of unneeded headers are now gone.
--- tests/core_auth.c | 11 +---------- tests/core_getclient.c | 1 - tests/core_getstats.c | 1 - tests/core_getversion.c | 1 - tests/core_hotunplug.c | 3 --- tests/core_setmaster_vs_auth.c | 2 -- tests/debugfs_test.c | 2 -- tests/drm_import_export.c | 7 ------- tests/drm_read.c | 7 ------- tests/dumb_buffer.c | 4 ---- tests/fbdev.c | 6 ------ tests/msm/msm_mapping.c | 1 - tests/prime_mmap.c | 5 ----- tests/prime_nv_pcopy.c | 2 -- tests/prime_nv_test.c | 1 - tests/prime_self_import.c | 2 -- tests/syncobj_timeline.c | 1 - tests/syncobj_wait.c | 1 - tests/testdisplay.c | 6 ------ tests/testdisplay_hotplug.c | 2 -- tests/tools_test.c | 4 ---- tests/vgem_slow.c | 2 -- 22 files changed, 1 insertion(+), 71 deletions(-)
tests/core_auth.c +1 -10
@@ -28,24 +28,15 @@#include "igt.h" #include <unistd.h> #include <stdlib.h> -#include <stdint.h> #include <stdio.h> #include <string.h> -#include <signal.h> #include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sched.h> -#include <sys/mount.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <sys/time.h> -#include <sys/poll.h> #include <sys/resource.h> #include "drm.h" #ifndef __linux__ -# include <pthread.h> +#include <pthread.h> #endif IGT_TEST_DESCRIPTION ("Call drmGetMagic() and drmAuthMagic() and see if it behaves." );
tests/core_getclient.c +0 -1
@@ -26,7 +26,6 @@*/ #include "igt.h" -#include <limits.h> #include <sys/ioctl.h> #include <stdlib.h> #include <errno.h>
tests/core_getstats.c +0 -1
@@ -26,7 +26,6 @@*/ #include "igt.h" -#include <limits.h> #include <sys/ioctl.h> #include <sys/types.h>
tests/core_getversion.c +0 -1
@@ -27,7 +27,6 @@#include "igt.h" #include <string.h> -#include <sys/ioctl.h> IGT_TEST_DESCRIPTION ("Tests the DRM_IOCTL_GET_VERSION ioctl and libdrm's " "drmGetVersion() interface to it." );
tests/core_hotunplug.c +0 -3
@@ -26,10 +26,7 @@#include <stdlib.h> #include <string.h> #include <sys/ioctl.h> -#include <sys/stat.h> -#include <sys/types.h> #include <unistd.h> -#include <signal.h> #include "i915/gem.h" #include "i915/gem_create.h"
tests/core_setmaster_vs_auth.c +0 -2
@@ -35,8 +35,6 @@#include "igt.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> #include "igt_device.h"
tests/debugfs_test.c +0 -2
@@ -20,13 +20,11 @@* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ -#include "config.h" #include "i915/gem.h" #include "igt.h" #include "igt_sysfs.h" #include <fcntl.h> -#include <sys/types.h> #include <dirent.h> IGT_TEST_DESCRIPTION ("Read entries from debugfs and sysfs paths." );
tests/drm_import_export.c +0 -7
@@ -25,20 +25,13 @@*/ #include "igt.h" -#include <stdio.h> #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> -#include <stdlib.h> #include <string.h> -#include <drm.h> -#include <i915_drm.h> -#include <xf86drm.h> #include <intel_bufmgr.h> #include <errno.h> #include <pthread.h> #include <unistd.h> -#include <sys/syscall.h> #include "i915/gem.h"
tests/drm_read.c +0 -7
@@ -31,17 +31,10 @@#include "igt.h" #include <unistd.h> -#include <stdlib.h> -#include <stdint.h> -#include <stdio.h> #include <string.h> #include <signal.h> #include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <sys/time.h> #include <sys/poll.h> #include <pthread.h> #include "drm.h"
tests/dumb_buffer.c +0 -4
@@ -32,16 +32,12 @@*/ #include <errno.h> -#include <fcntl.h> #include <inttypes.h> #include <pthread.h> #include <signal.h> #include <stdatomic.h> -#include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/ioctl.h> -#include <sys/stat.h> #include <sys/time.h> #include <drm.h>
tests/fbdev.c +0 -6
@@ -21,8 +21,6 @@* IN THE SOFTWARE. */ -#include "config.h" -#include "igt.h" #include <errno.h>
@@ -31,14 +29,10 @@#include <string.h> #include <sys/ioctl.h> #include <sys/mman.h> -#include <sys/stat.h> -#include <sys/types.h> #include <unistd.h> #include <linux/fb.h> -#include "igt.h" -#define PANSTEP (panstep_) \ ((panstep_) ? (panstep_) : 1)
tests/msm/msm_mapping.c +0 -1
@@ -26,7 +26,6 @@#include <glob.h> #include <string.h> #include <sys/poll.h> -#include <sys/stat.h> #include "igt.h" #include "igt_msm.h"
tests/prime_mmap.c +0 -5
@@ -34,11 +34,7 @@#include <stdio.h> #include <string.h> #include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <pthread.h> #include "drm.h" #include "drmtest.h"
@@ -47,7 +43,6 @@#include "i915_drm.h" #include "i915/gem_create.h" #include "i915/gem_mman.h" -#include "igt_debugfs.h" #include "ioctl_wrappers.h" #include "i915/intel_memory_region.h"
tests/prime_nv_pcopy.c +0 -2
@@ -22,8 +22,6 @@#include <fcntl.h> #include <string.h> #include <sys/stat.h> -#include <sys/ioctl.h> -#include <errno.h> #include "intel_bufmgr.h" #include "nouveau.h"
tests/prime_nv_test.c +0 -1
@@ -21,7 +21,6 @@#include <fcntl.h> #include <string.h> #include <sys/stat.h> -#include <sys/ioctl.h> #include "intel_bufmgr.h" #include "nouveau.h"
tests/prime_self_import.c +0 -2
@@ -34,12 +34,10 @@#include "igt.h" #include <unistd.h> #include <stdlib.h> -#include <stdio.h> #include <string.h> #include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include <pthread.h>
tests/syncobj_timeline.c +0 -1
@@ -26,7 +26,6 @@#include "igt_syncobj.h" #include <unistd.h> #include <time.h> -#include <sys/ioctl.h> #include <pthread.h> #include <signal.h> #include "drm.h"
tests/syncobj_wait.c +0 -1
@@ -26,7 +26,6 @@#include "igt_syncobj.h" #include <unistd.h> #include <time.h> -#include <sys/ioctl.h> #include <pthread.h> #include <signal.h> #include "drm.h"
tests/testdisplay.c +0 -6
@@ -45,23 +45,17 @@* - DP commands (e.g. poweroff) * - verify outputs against VBT/physical connectors */ -#include "config.h" #include "igt.h" #include <cairo.h> #include <errno.h> #include <getopt.h> #include <libgen.h> -#include <math.h> #include <stdint.h> #include <stdbool.h> #include <strings.h> #include <unistd.h> #include <termios.h> -#include <sys/poll.h> -#include <sys/time.h> -#include <sys/ioctl.h> -#include <sys/types.h> #include <sys/stat.h> #include "testdisplay.h"
tests/testdisplay_hotplug.c +0 -2
@@ -22,14 +22,12 @@*/ #include "igt.h" -#include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/stat.h> #include "testdisplay.h" -#include "config.h" #include <libudev.h>
tests/tools_test.c +0 -4
@@ -20,12 +20,8 @@* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ -#include "config.h" #include "igt.h" #include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <fcntl.h> #include <libgen.h> #include <unistd.h> #include <linux/limits.h>
tests/vgem_slow.c +0 -2
@@ -28,8 +28,6 @@#include <sys/mman.h> #include <sys/poll.h> -#include <sys/stat.h> -#include <dirent.h> IGT_TEST_DESCRIPTION ("Extended sanity check of Virtual GEM module (vGEM)." );
Signature · 1 line
2.36.1
PATCH 12/14 tools: Remove unused headers
In reply to Ryszard KnopUsing CLion's automated code inspection, most unused includes were found and removed. Some warnings remain as CLion is unable to track code usage across certain attributes, but the vast majority of unneeded headers are now gone.
--- tools/cnl_compute_wrpll.c | 1 - tools/hsw_compute_wrpll.c | 3 --- tools/i915-perf/i915_perf_configs.c | 1 - tools/i915-perf/i915_perf_reader.c | 5 ----- tools/i915-perf/i915_perf_recorder.c | 4 ---- tools/igt_compliance_utils.c | 3 --- tools/igt_dp_compliance_hotplug.c | 1 - tools/igt_stats.c | 3 --- tools/intel_audio_dump.c | 3 --- tools/intel_backlight.c | 1 - tools/intel_bios_dumper.c | 1 - tools/intel_display_poller.c | 3 --- tools/intel_dp_compliance.c | 11 ----------- tools/intel_error_decode.c | 3 --- tools/intel_firmware_decode.c | 3 --- tools/intel_forcewaked.c | 3 --- tools/intel_framebuffer_dump.c | 3 --- tools/intel_gem_info.c | 2 -- tools/intel_gpu_top.c | 1 - tools/intel_gtt.c | 3 --- tools/intel_guc_logger.c | 4 ---- tools/intel_gvtg_test.c | 15 --------------- tools/intel_l3_parity.c | 3 --- tools/intel_l3_udev_listener.c | 3 --- tools/intel_lid.c | 5 ----- tools/intel_opregion_decode.c | 2 -- tools/intel_panel_fitter.c | 2 -- tools/intel_perf_counters.c | 3 --- tools/intel_pm_rpm.c | 3 --- tools/intel_reg.c | 1 - tools/intel_reg_checker.c | 3 --- tools/intel_residency.c | 1 - tools/intel_stepping.c | 2 -- tools/intel_vbt_decode.c | 3 +-- tools/intel_watermark.c | 1 - tools/lsgpu.c | 3 --- tools/msm_dp_compliance.c | 11 ----------- tools/null_state_gen/intel_batchbuffer.c | 1 - tools/null_state_gen/intel_null_state_gen.c | 1 - tools/null_state_gen/intel_renderstate_gen8.c | 1 - tools/skl_compute_wrpll.c | 2 -- 41 files changed, 1 insertion(+), 127 deletions(-)
tools/cnl_compute_wrpll.c +0 -1
@@ -22,7 +22,6 @@*/ #include <assert.h> -#include <inttypes.h> #include <limits.h> #include <stdio.h> #include <stdbool.h>
tools/hsw_compute_wrpll.c +0 -3
@@ -23,11 +23,8 @@#include <inttypes.h> #include <stdio.h> -#include <stdbool.h> #include <stdint.h> -#include <stdlib.h> -#include "intel_io.h" #include "drmtest.h" #define LC_FREQ 2700
tools/i915-perf/i915_perf_configs.c +0 -1
@@ -33,7 +33,6 @@#include <string.h> #include <sys/ioctl.h> #include <sys/sysmacros.h> -#include <sys/types.h> #include <sys/stat.h> #include <unistd.h>
tools/i915-perf/i915_perf_reader.c +0 -5
@@ -20,23 +20,18 @@* SOFTWARE. */ -#include <assert.h> #include <errno.h> #include <fcntl.h> #include <getopt.h> #include <inttypes.h> -#include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/types.h> -#include <sys/stat.h> #include <unistd.h> #include <i915_drm.h> -#include "igt_core.h" #include "intel_chipset.h" #include "i915/perf.h" #include "i915/perf_data_reader.h"
tools/i915-perf/i915_perf_recorder.c +0 -4
@@ -21,7 +21,6 @@*/ #include <assert.h> -#include <dirent.h> #include <errno.h> #include <fcntl.h> #include <getopt.h>
@@ -35,9 +34,6 @@#include <string.h> #include <sys/ioctl.h> #include <sys/stat.h> -#include <sys/sysmacros.h> -#include <sys/time.h> -#include <sys/types.h> #include <time.h> #include <unistd.h>
tools/igt_compliance_utils.c +0 -3
@@ -24,13 +24,10 @@*/ #include "igt.h" -#include <stdio.h> #include <string.h> -#include <stdlib.h> #include <signal.h> #include <termios.h> #include <libgen.h> -#include <sys/stat.h> #include "igt_dp_compliance.h"
tools/igt_dp_compliance_hotplug.c +0 -1
@@ -24,7 +24,6 @@*/ #include "igt.h" -#include <stdio.h> #include <string.h> #include <stdlib.h>
tools/igt_stats.c +0 -3
@@ -28,10 +28,7 @@#include <stdlib.h> #include <stdio.h> -#include <stdint.h> #include <string.h> -#include <errno.h> -#include <unistd.h> #include "igt_stats.h"
tools/intel_audio_dump.c +0 -3
@@ -26,11 +26,8 @@* */ -#include <unistd.h> #include <stdlib.h> #include <stdio.h> -#include <string.h> -#include <err.h> #include <arpa/inet.h> #include "intel_io.h" #include "intel_reg.h"
tools/intel_backlight.c +0 -1
@@ -28,7 +28,6 @@#include <stdint.h> #include <stdlib.h> #include <stdio.h> -#include <string.h> #include "intel_io.h" #include "intel_chipset.h"
tools/intel_bios_dumper.c +0 -1
@@ -28,7 +28,6 @@#include <stdio.h> #include <stdlib.h> #include <string.h> -#include <stdarg.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h>
tools/intel_display_poller.c +0 -3
@@ -23,19 +23,16 @@*/ #include <assert.h> -#include <fcntl.h> #include <getopt.h> #include <unistd.h> #include <signal.h> #include <stdbool.h> #include <stdlib.h> #include <stdio.h> -#include <err.h> #include <string.h> #include "intel_chipset.h" #include "intel_io.h" #include "intel_reg.h" -#include "igt_debugfs.h" #include "drmtest.h" #include "igt_aux.h"
tools/intel_dp_compliance.c +0 -11
@@ -109,27 +109,16 @@#include "igt.h" #include <errno.h> #include <getopt.h> -#include <math.h> #include <stdint.h> #include <stdbool.h> #include <strings.h> #include <unistd.h> -#include <termios.h> -#include <sys/poll.h> -#include <sys/time.h> -#include <sys/ioctl.h> -#include <sys/types.h> #include <sys/stat.h> -#include <sys/select.h> -#include <assert.h> -#include <signal.h> #include <fcntl.h> -#include <time.h> #include "igt_dp_compliance.h" #include <stdlib.h> -#include <signal.h> /* User Input definitions */ #define HELP_DESCRIPTION 1
tools/intel_error_decode.c +0 -3
@@ -41,7 +41,6 @@#include <stdbool.h> #include <stdio.h> #include <stdlib.h> -#include <stdarg.h> #include <string.h> #include <unistd.h> #include <inttypes.h>
@@ -54,10 +53,8 @@#include <ctype.h> #include "intel_chipset.h" -#include "intel_io.h" #include "instdone.h" #include "intel_reg.h" -#include "drmtest.h" static uint32_t print_head (unsigned int reg)
tools/intel_firmware_decode.c +0 -3
@@ -28,10 +28,7 @@#include <inttypes.h> #include <stdio.h> #include <stdint.h> -#include <stdlib.h> #include <string.h> -#include <unistd.h> -#include <sys/types.h> #include <sys/mman.h> #include <sys/stat.h>
tools/intel_forcewaked.c +0 -3
@@ -26,9 +26,7 @@*/ #include <assert.h> -#include <err.h> #include <string.h> -#include <stdarg.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h>
@@ -36,7 +34,6 @@#include <unistd.h> #include "intel_io.h" #include "intel_chipset.h" -#include "drmtest.h" bool daemonized;
tools/intel_framebuffer_dump.c +0 -3
@@ -26,15 +26,12 @@* Read back all the KMS framebuffers attached to the CRTC and record as PNG. */ -#include <stdint.h> -#include <sys/types.h> #include <sys/mman.h> #include <errno.h> #include <xf86drmMode.h> #include <i915_drm.h> #include <cairo.h> -#include "intel_io.h" #include "drmtest.h" int main (int argc,char **argv)
tools/intel_gem_info.c +0 -2
@@ -1,8 +1,6 @@#include "igt.h" #include <sys/ioctl.h> -#include <fcntl.h> #include <errno.h> -#include <string.h> #include <signal.h> #include <i915_drm.h>
tools/intel_gpu_top.c +0 -1
@@ -40,7 +40,6 @@#include <string.h> #include <sys/ioctl.h> #include <sys/stat.h> -#include <sys/types.h> #include <unistd.h> #include <termios.h> #include <sys/sysmacros.h>
tools/intel_gtt.c +0 -3
@@ -30,11 +30,8 @@#include <stdio.h> #include <stdlib.h> #include <string.h> -#include <stdarg.h> #include <pciaccess.h> -#include <unistd.h> -#include "intel_io.h" #include "intel_chipset.h" #define KB (x) ((x) * 1024)
tools/intel_guc_logger.c +0 -4
@@ -26,18 +26,14 @@#include <stdio.h> #include <fcntl.h> #include <sched.h> -#include <sys/ioctl.h> #include <string.h> #include <errno.h> #include <signal.h> #include <stdlib.h> #include <unistd.h> #include <sys/poll.h> -#include <sys/wait.h> #include <sys/types.h> -#include <sys/syscall.h> #include <sys/mman.h> -#include <assert.h> #include <pthread.h> #include "igt.h"
tools/intel_gvtg_test.c +0 -15
@@ -28,31 +28,16 @@* TODO: * Enable more GVT-g related test cases. */ -#include "config.h" #include "igt.h" #include <errno.h> #include <getopt.h> -#include <math.h> -#include <stdint.h> -#include <stdbool.h> #include <strings.h> #include <unistd.h> -#include <termios.h> -#include <sys/poll.h> -#include <sys/time.h> -#include <sys/ioctl.h> -#include <sys/types.h> -#include <sys/stat.h> #include <string.h> #include <stdlib.h> -#include <signal.h> #include <stdio.h> -#include <stdlib.h> -#include <time.h> -#include <unistd.h> #include <pwd.h> -#include <limits.h> #include <dirent.h> #define RANDOM (x) (rand() % x)
tools/intel_l3_parity.c +0 -3
@@ -25,8 +25,6 @@* */ -#include <sys/types.h> -#include <sys/stat.h> #include <assert.h> #include <fcntl.h> #include <stdio.h>
@@ -39,7 +37,6 @@#include "igt_device.h" #include "igt_sysfs.h" #include "drmtest.h" -#include "config.h" #include <libudev.h> #include <syslog.h> #include "intel_l3_parity.h"
tools/intel_l3_udev_listener.c +0 -3
@@ -21,13 +21,10 @@* DEALINGS IN THE SOFTWARE. */ -#include "config.h" -#include <libudev.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <unistd.h> #include <assert.h> #include <syslog.h> #include "i915_drm.h"
tools/intel_lid.c +0 -5
@@ -28,14 +28,9 @@#include <stdio.h> #include <stdlib.h> #include <string.h> -#include <stdarg.h> -#include <pciaccess.h> -#include <err.h> #include <fcntl.h> #include <unistd.h> #include <dirent.h> -#include <sys/stat.h> -#include <sys/types.h> #include "intel_io.h" #include "intel_reg.h"
tools/intel_opregion_decode.c +0 -2
@@ -36,9 +36,7 @@#include <unistd.h> #include <sys/mman.h> #include <sys/stat.h> -#include <sys/types.h> -#include "intel_io.h" #include "drmtest.h" #define OPREGION_HEADER_OFFSET 0
tools/intel_panel_fitter.c +0 -2
@@ -29,11 +29,9 @@#include <stdio.h> #include <unistd.h> #include <stdlib.h> -#include <string.h> #include "intel_io.h" #include "intel_chipset.h" #include "intel_reg.h" -#include "drmtest.h" int gen;
tools/intel_perf_counters.c +0 -3
@@ -39,10 +39,7 @@#include <stdbool.h> #include <stdlib.h> #include <stdio.h> -#include <err.h> -#include <sys/ioctl.h> -#include "drm.h" #include "i915_drm.h" #include "igt_device.h" #include "drmtest.h"
tools/intel_pm_rpm.c +0 -3
@@ -22,10 +22,7 @@* */ -#include <errno.h> #include <getopt.h> -#include <glib.h> -#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h>
tools/intel_reg.c +0 -1
@@ -29,7 +29,6 @@#include <stdlib.h> #include <string.h> #include <sys/stat.h> -#include <sys/types.h> #include <unistd.h> #include "i915/gem_create.h"
tools/intel_reg_checker.c +0 -3
@@ -21,10 +21,7 @@*/ #include <unistd.h> -#include <stdlib.h> #include <stdio.h> -#include <err.h> -#include <string.h> #include <stdbool.h> #include "intel_io.h" #include "intel_chipset.h"
tools/intel_residency.c +0 -1
@@ -25,7 +25,6 @@*/ #include <sys/time.h> -#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <inttypes.h>
tools/intel_stepping.c +0 -2
@@ -28,11 +28,9 @@#include <stdio.h> #include <stdlib.h> #include <string.h> -#include <stdarg.h> #include <pciaccess.h> #include <err.h> #include "intel_chipset.h" -#include "intel_io.h" #include "intel_reg.h" static void
tools/intel_vbt_decode.c +1 -2
@@ -1,5 +1,5 @@/* -* Copyright � 2006 Intel Corporation +* Copyright � 2006 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"),
@@ -35,7 +35,6 @@#include <unistd.h> #include <sys/mman.h> #include <sys/stat.h> -#include <sys/types.h> #include "igt_aux.h" #include "intel_io.h"
tools/intel_watermark.c +0 -1
@@ -27,7 +27,6 @@#include <stdlib.h> #include <stdio.h> #include <stdbool.h> -#include <err.h> #include <string.h> #include "intel_io.h" #include "intel_chipset.h"
tools/lsgpu.c +0 -3
@@ -24,9 +24,6 @@#include "igt_device_scan.h" #include "igt.h" -#include <sys/ioctl.h> -#include <fcntl.h> -#include <errno.h> #include <string.h> #include <signal.h> #include <glib.h>
tools/msm_dp_compliance.c +0 -11
@@ -110,27 +110,16 @@#include "igt.h" #include <errno.h> #include <getopt.h> -#include <math.h> #include <stdint.h> #include <stdbool.h> #include <strings.h> #include <unistd.h> -#include <termios.h> -#include <sys/poll.h> -#include <sys/time.h> -#include <sys/ioctl.h> -#include <sys/types.h> #include <sys/stat.h> -#include <sys/select.h> -#include <assert.h> -#include <signal.h> #include <fcntl.h> -#include <time.h> #include "igt_dp_compliance.h" #include <stdlib.h> -#include <signal.h> /* User Input definitions */ #define HELP_DESCRIPTION 1
tools/null_state_gen/intel_batchbuffer.c +0 -1
@@ -31,7 +31,6 @@#include <stdio.h> #include <stdlib.h> #include <string.h> -#include <errno.h> #include <assert.h> #include "intel_batchbuffer.h"
tools/null_state_gen/intel_null_state_gen.c +0 -1
@@ -28,7 +28,6 @@#include <stdio.h> #include <stdlib.h> #include <errno.h> -#include <assert.h> #include "intel_renderstate.h" #include "intel_batchbuffer.h"
tools/null_state_gen/intel_renderstate_gen8.c +0 -1
@@ -28,7 +28,6 @@#include "intel_batchbuffer.h" #include <lib/gen8_render.h> #include <lib/intel_reg.h> -#include <string.h> static void gen8_emit_wm (struct intel_batchbuffer *batch) {
tools/skl_compute_wrpll.c +0 -2
@@ -23,11 +23,9 @@#include <assert.h> #include <inttypes.h> -#include <limits.h> #include <stdio.h> #include <stdbool.h> #include <stdint.h> -#include <stdlib.h> #include <string.h> #include "igt_stats.h"
Signature · 1 line
2.36.1
PATCH 13/14 tests/i915/gem*: Remove unused headers
In reply to Ryszard KnopUsing CLion's automated code inspection, most unused includes were found and removed. Some warnings remain as CLion is unable to track code usage across certain attributes, but the vast majority of unneeded headers are now gone.
--- tests/i915/gem_bad_reloc.c | 11 +---------- tests/i915/gem_basic.c | 4 ---- tests/i915/gem_caching.c | 7 ------- tests/i915/gem_ccs.c | 5 +---- tests/i915/gem_close_race.c | 6 ------ tests/i915/gem_concurrent_all.c | 4 ---- tests/i915/gem_create.c | 7 ------- tests/i915/gem_cs_tlb.c | 5 ----- tests/i915/gem_ctx_bad_destroy.c | 2 +- tests/i915/gem_ctx_engines.c | 5 ----- tests/i915/gem_ctx_exec.c | 4 ---- tests/i915/gem_ctx_freq.c | 4 ---- tests/i915/gem_ctx_persistence.c | 1 - tests/i915/gem_ctx_shared.c | 8 -------- tests/i915/gem_ctx_sseu.c | 6 ------ tests/i915/gem_ctx_switch.c | 6 ------ tests/i915/gem_eio.c | 2 -- tests/i915/gem_evict_alignment.c | 8 -------- tests/i915/gem_evict_everything.c | 9 +-------- tests/i915/gem_exec_alignment.c | 3 --- tests/i915/gem_exec_await.c | 4 ---- tests/i915/gem_exec_balancer.c | 1 - tests/i915/gem_exec_big.c | 7 ------- tests/i915/gem_exec_capture.c | 1 - tests/i915/gem_exec_create.c | 7 ------- tests/i915/gem_exec_endless.c | 1 - tests/i915/gem_exec_fair.c | 8 -------- tests/i915/gem_exec_fence.c | 1 - tests/i915/gem_exec_latency.c | 9 --------- tests/i915/gem_exec_lut_handle.c | 6 ------ tests/i915/gem_exec_nop.c | 7 ------- tests/i915/gem_exec_params.c | 5 ----- tests/i915/gem_exec_reloc.c | 2 -- tests/i915/gem_exec_schedule.c | 3 --- tests/i915/gem_fd_exhaustion.c | 6 +----- tests/i915/gem_fence_thrash.c | 7 ------- tests/i915/gem_fence_upload.c | 6 ------ tests/i915/gem_fenced_exec_thrash.c | 1 - tests/i915/gem_flink_basic.c | 6 +----- tests/i915/gem_gpgpu_fill.c | 9 --------- tests/i915/gem_gtt_cpu_tlb.c | 7 ------- tests/i915/gem_gtt_hog.c | 7 ------- tests/i915/gem_gtt_speed.c | 7 ------- tests/i915/gem_huc_copy.c | 7 ------- tests/i915/gem_linear_blits.c | 7 ------- tests/i915/gem_lmem_swapping.c | 6 ------ tests/i915/gem_lut_handle.c | 5 ----- tests/i915/gem_madvise.c | 4 ---- tests/i915/gem_media_fill.c | 8 -------- tests/i915/gem_media_vme.c | 9 --------- tests/i915/gem_mmap.c | 4 ---- tests/i915/gem_mmap_gtt.c | 1 - tests/i915/gem_mmap_offset.c | 1 - tests/i915/gem_mmap_wc.c | 5 ----- tests/i915/gem_partial_pwrite_pread.c | 6 ------ tests/i915/gem_pipe_control_store_loop.c | 6 ------ tests/i915/gem_ppgtt.c | 7 ------- tests/i915/gem_pread.c | 2 -- tests/i915/gem_pread_after_blit.c | 7 ------- tests/i915/gem_pwrite.c | 2 -- tests/i915/gem_pwrite_snooped.c | 10 +--------- tests/i915/gem_read_read_speed.c | 7 ------- tests/i915/gem_readwrite.c | 4 ---- tests/i915/gem_reg_read.c | 1 - tests/i915/gem_render_copy.c | 9 --------- tests/i915/gem_render_copy_redux.c | 9 --------- tests/i915/gem_render_linear_blits.c | 10 ---------- tests/i915/gem_render_tiled_blits.c | 9 --------- tests/i915/gem_request_retire.c | 13 ------------- tests/i915/gem_reset_stats.c | 4 ---- tests/i915/gem_ringfill.c | 2 -- tests/i915/gem_set_tiling_vs_blt.c | 7 ------- tests/i915/gem_set_tiling_vs_gtt.c | 7 ------- tests/i915/gem_set_tiling_vs_pwrite.c | 7 ------- tests/i915/gem_streaming_writes.c | 9 +-------- tests/i915/gem_stress.c | 8 -------- tests/i915/gem_sync.c | 1 - tests/i915/gem_tiled_blits.c | 7 ------- tests/i915/gem_tiled_partial_pwrite_pread.c | 6 ------ tests/i915/gem_tiled_pread_basic.c | 7 ------- tests/i915/gem_tiled_pread_pwrite.c | 8 -------- tests/i915/gem_tiled_swapping.c | 7 ------- tests/i915/gem_tiled_wb.c | 5 ----- tests/i915/gem_tiled_wc.c | 4 ---- tests/i915/gem_tiling_max_stride.c | 5 ----- tests/i915/gem_unfence_active_buffers.c | 8 -------- tests/i915/gem_unref_active_buffers.c | 1 - tests/i915/gem_userptr_blits.c | 1 - tests/i915/gem_vm_create.c | 1 - tests/i915/gem_watchdog.c | 2 -- 90 files changed, 8 insertions(+), 483 deletions(-)
tests/i915/gem_bad_reloc.c +1 -10
@@ -26,18 +26,9 @@*/ #include <unistd.h> -#include <stdlib.h> #include <stdint.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <sys/time.h> - -#include "drm.h" +#include "i915/gem.h" #include "i915/gem_create.h" #include "igt.h"
tests/i915/gem_basic.c +0 -4
@@ -27,13 +27,9 @@#include "igt.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include "drm.h"
tests/i915/gem_caching.c +0 -7
@@ -27,15 +27,8 @@*/ #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> - -#include <drm.h> #include "i915/gem.h" #include "igt.h"
tests/i915/gem_ccs.c +1 -4
@@ -3,12 +3,9 @@* Copyright © 2022 Intel Corporation */ -#include <errno.h> #include <glib.h> -#include <sys/ioctl.h> -#include <sys/time.h> #include <malloc.h> -#include "drm.h" +#include "igt.h" #include "i915/gem.h" #include "i915/gem_create.h"
tests/i915/gem_close_race.c +0 -6
@@ -31,15 +31,9 @@#include <stdbool.h> #include <stdlib.h> #include <stdint.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> -#include <sys/syscall.h> #include "drm.h" #include "i915/gem.h"
tests/i915/gem_concurrent_all.c +0 -4
@@ -39,11 +39,7 @@#include <stdio.h> #include <string.h> #include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/resource.h> -#include <sys/stat.h> -#include <sys/time.h> #include <sys/wait.h> #include <drm.h>
tests/i915/gem_create.c +0 -7
@@ -32,15 +32,10 @@*/ #include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> #include <sys/time.h> -#include <getopt.h> #include <pthread.h> #include <stdatomic.h>
@@ -48,8 +43,6 @@#include "drmtest.h" #include "ioctl_wrappers.h" #include "intel_batchbuffer.h" -#include "intel_io.h" -#include "intel_chipset.h" #include "igt_aux.h" #include "igt_dummyload.h" #include "igt_x86.h"
tests/i915/gem_cs_tlb.c +0 -5
@@ -36,15 +36,10 @@*/ #include <unistd.h> -#include <stdlib.h> #include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <drm.h>
tests/i915/gem_ctx_bad_destroy.c +1 -1
@@ -30,7 +30,7 @@*/ #include "igt.h" -#include <stdio.h> +#include <string.h> #include <errno.h>
tests/i915/gem_ctx_engines.c +0 -5
@@ -27,13 +27,8 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> #include <sched.h> -#include <sys/ioctl.h> -#include <sys/stat.h> -#include <sys/time.h> #include <drm.h>
tests/i915/gem_ctx_exec.c +0 -4
@@ -29,12 +29,8 @@#include <signal.h> #include <stdlib.h> #include <stdint.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include <sys/time.h>
tests/i915/gem_ctx_freq.c +0 -4
@@ -22,10 +22,7 @@* */ -#include <errno.h> -#include <fcntl.h> #include <sched.h> -#include <stdlib.h> #include <stdint.h> #include <unistd.h>
@@ -33,7 +30,6 @@#include "igt.h" #include "igt_perf.h" #include "igt_sysfs.h" -#include "sw_sync.h" #define SAMPLE_PERIOD (USEC_PER_SEC / 10)#define PMU_TOLERANCE 100
tests/i915/gem_ctx_persistence.c +0 -1
@@ -27,7 +27,6 @@#include <signal.h> #include <sys/ioctl.h> #include <sys/socket.h> -#include <sys/types.h> #include <unistd.h> #include "drmtest.h"
tests/i915/gem_ctx_shared.c +0 -8
@@ -28,14 +28,7 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <sys/time.h> - -#include <drm.h> #include "i915/gem.h" #include "i915/gem_create.h"
@@ -43,7 +36,6 @@#include "i915/gem_vm.h" #include "igt.h" #include "igt_rand.h" -#include "igt_vgem.h" #include "sw_sync.h" #include "sync_file.h"
tests/i915/gem_ctx_sseu.c +0 -6
@@ -26,20 +26,14 @@*/ #include <stdio.h> -#include <stdlib.h> #include <string.h> #include <unistd.h> -#include <fcntl.h> -#include <signal.h> #include <errno.h> -#include <time.h> #include <sys/mman.h> -#include <sys/wait.h> #include "i915/gem.h" #include "i915/gem_create.h" #include "igt.h" -#include "igt.h" #include "igt_dummyload.h" #include "igt_perf.h" #include "igt_sysfs.h"
tests/i915/gem_ctx_switch.c +0 -6
@@ -31,15 +31,9 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <time.h> -#include "drm.h" #include "i915/gem.h" #include "i915/gem_create.h" #include "i915/gem_ring.h"
tests/i915/gem_eio.c +0 -2
@@ -30,13 +30,11 @@#include <dirent.h> #include <errno.h> #include <fcntl.h> -#include <inttypes.h> #include <sched.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/ioctl.h> #include <time.h> #include <unistd.h>
tests/i915/gem_evict_alignment.c +0 -8
@@ -33,16 +33,8 @@#include <unistd.h> #include <stdlib.h> #include <stdint.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <sys/time.h> - -#include <drm.h> #include "i915/gem.h" #include "i915/gem_create.h"
tests/i915/gem_evict_everything.c +1 -8
@@ -35,14 +35,7 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <sys/time.h> - -#include "drm.h" +#include "i915/gem.h" #include "i915/gem_create.h" #include "igt.h"
tests/i915/gem_exec_alignment.c +0 -3
@@ -30,14 +30,11 @@#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> #include <signal.h> -#include <sys/stat.h> #include <sys/time.h> #include <sys/ioctl.h> -#include <signal.h> #include <sched.h> #include "drm.h"
tests/i915/gem_exec_await.c +0 -4
@@ -22,15 +22,11 @@* */ -#include <sys/ioctl.h> #include <sys/signal.h> #include "i915/gem.h" #include "i915/gem_create.h" #include "igt.h" -#include "igt_rand.h" -#include "igt_sysfs.h" -#include "igt_vgem.h" static double elapsed (const struct timespec *start,const struct timespec *end) {
tests/i915/gem_exec_balancer.c +0 -1
@@ -30,7 +30,6 @@#include "i915/gem.h" #include "i915/gem_engine_topology.h" #include "i915/gem_create.h" -#include "i915/gem_vm.h" #include "igt.h" #include "igt_gt.h" #include "igt_perf.h"
tests/i915/gem_exec_big.c +0 -7
@@ -35,16 +35,9 @@#include <unistd.h> #include <stdlib.h> #include <stdint.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <sys/time.h> -#include "drm.h" #include "i915/gem.h" #include "i915/gem_create.h" #include "igt.h"
tests/i915/gem_exec_capture.c +0 -1
@@ -29,7 +29,6 @@#include "i915/gem_create.h" #include "igt.h" #include "igt_device.h" -#include "igt_rand.h" #include "igt_sysfs.h" #define MAX_RESET_TIME 600
tests/i915/gem_exec_create.c +0 -7
@@ -30,17 +30,10 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <time.h> -#include "drm.h" #include "i915/gem.h" -#include "i915/gem_create.h" #include "i915/gem_ring.h" #include "igt.h"
tests/i915/gem_exec_endless.c +0 -1
@@ -28,7 +28,6 @@#include "igt.h" #include "igt_device.h" #include "igt_sysfs.h" -#include "sw_sync.h" #define MAX_ENGINES 64
tests/i915/gem_exec_fair.c +0 -8
@@ -3,16 +3,11 @@* Copyright © 2016 Intel Corporation */ -#include "config.h" -#include <pthread.h> #include <sys/poll.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/resource.h> -#include <sys/syscall.h> -#include <sched.h> -#include <signal.h> #include <unistd.h> #include "sync_file.h"
@@ -20,11 +15,8 @@#include "i915/gem.h" #include "i915/gem_create.h" #include "igt.h" -#include "igt_rand.h" -#include "igt_rapl.h" #include "igt_sysfs.h" #include "igt_syncobj.h" -#include "igt_vgem.h" #include "ioctl_wrappers.h" #include "sw_sync.h"
tests/i915/gem_exec_fence.c +0 -1
@@ -31,7 +31,6 @@#include "igt_store.h" #include "igt_syncobj.h" #include "igt_sysfs.h" -#include "igt_vgem.h" #include "intel_ctx.h" #include "sw_sync.h"
tests/i915/gem_exec_latency.c +0 -9
@@ -27,14 +27,6 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <sys/time.h> -#include <sys/signal.h> -#include <time.h> #include <sched.h> #include "drm.h"
@@ -42,7 +34,6 @@#include "igt.h" #include "igt_device.h" #include "igt_sysfs.h" -#include "igt_vgem.h" #include "igt_dummyload.h" #include "igt_stats.h"
tests/i915/gem_exec_lut_handle.c +0 -6
@@ -27,16 +27,10 @@/* Exercises the basic execbuffer using the handle LUT interface */ -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> #include <sys/time.h> -#include "drm.h" #include "i915/gem.h" #include "i915/gem_create.h" #include "igt.h"
tests/i915/gem_exec_nop.c +0 -7
@@ -30,16 +30,9 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/poll.h> -#include <sys/time.h> #include <time.h> -#include "drm.h" #include "i915/gem.h" #include "i915/gem_create.h" #include "igt.h"
tests/i915/gem_exec_params.c +0 -5
@@ -28,14 +28,9 @@#include <unistd.h> #include <stdlib.h> #include <stdint.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> #include <sys/ioctl.h> -#include <sys/time.h> #include "drm.h" #include "i915/gem.h"
tests/i915/gem_exec_reloc.c +0 -2
@@ -22,7 +22,6 @@*/ #include <signal.h> -#include <sys/ioctl.h> #include "i915/gem.h" #include "i915/gem_create.h"
@@ -30,7 +29,6 @@#include "igt_device.h" #include "igt_dummyload.h" #include "igt_kms.h" -#include "sw_sync.h" IGT_TEST_DESCRIPTION ("Basic sanity check of execbuf-ioctl relocations." );
tests/i915/gem_exec_schedule.c +0 -3
@@ -21,8 +21,6 @@* IN THE SOFTWARE. */ -#include "config.h" -#include <linux/userfaultfd.h> #include <pthread.h>
@@ -41,7 +39,6 @@#include "igt_rand.h" #include "igt_rapl.h" #include "igt_sysfs.h" -#include "igt_vgem.h" #include "intel_ctx.h" #include "sw_sync.h"
tests/i915/gem_fd_exhaustion.c +1 -5
@@ -26,12 +26,8 @@*/ #include "igt.h" -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/resource.h> -#include <sys/time.h> +#include <fcntl.h> -#include <limits.h> #include "i915/gem_create.h"
tests/i915/gem_fence_thrash.c +0 -7
@@ -26,19 +26,12 @@* */ -#include "config.h" -#include <unistd.h> #include <stdlib.h> -#include <stdio.h> #include <string.h> #include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <pthread.h> -#include "drm.h" #include "i915/gem_create.h" #include "igt.h"
tests/i915/gem_fence_upload.c +0 -6
@@ -25,20 +25,14 @@* */ -#include "config.h" -#include "igt.h" -#include <unistd.h> #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> #include <sys/time.h> #include <pthread.h> -#include "drm.h" #include "i915_drm.h" #include "i915/gem_create.h"
tests/i915/gem_fenced_exec_thrash.c +0 -1
@@ -27,7 +27,6 @@#include <stdlib.h> #include <string.h> -#include <inttypes.h> #include <errno.h> #include "i915/gem.h"
tests/i915/gem_flink_basic.c +1 -5
@@ -26,13 +26,9 @@*/ #include "igt.h" -#include <stdlib.h> -#include <stdio.h> +#include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include "drm.h"
tests/i915/gem_gpgpu_fill.c +0 -9
@@ -30,19 +30,10 @@* workload for the GPGPU pipeline. */ -#include <stdbool.h> -#include <unistd.h> #include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include "drm.h" #include "i915/gem.h" #include "igt.h" #include "igt_collection.h"
tests/i915/gem_gtt_cpu_tlb.c +0 -7
@@ -32,16 +32,9 @@#include "igt.h" #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <sys/ioctl.h> -#include "drm.h" #include "i915/gem_create.h" IGT_TEST_DESCRIPTION("Check whether gtt tlbs for cpu access are correctly"
tests/i915/gem_gtt_hog.c +0 -7
@@ -28,15 +28,8 @@#include <unistd.h> #include <stdlib.h> #include <stdint.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> -#include <sys/wait.h> #include "drm.h" #include "i915/gem.h"
tests/i915/gem_gtt_speed.c +0 -7
@@ -31,16 +31,9 @@#include <unistd.h> #include <stdlib.h> #include <stdint.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> -#include "drm.h" #include "i915/gem_create.h" #define OBJECT_SIZE 16384
tests/i915/gem_huc_copy.c +0 -7
@@ -21,17 +21,10 @@* IN THE SOFTWARE. */ #include "igt.h" -#include <stdbool.h> #include <unistd.h> #include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> #include "drm.h" #include "i915/gem.h" #include "i915/gem_create.h"
tests/i915/gem_linear_blits.c +0 -7
@@ -34,15 +34,8 @@*/ #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> - -#include <drm.h> #include "i915/gem.h" #include "i915/gem_create.h"
tests/i915/gem_lmem_swapping.c +0 -6
@@ -5,7 +5,6 @@#include "i915/gem.h" #include "i915/gem_create.h" -#include "i915/gem_vm.h" #include "i915/intel_memory_region.h" #include "igt.h" #include "igt_kmod.h"
@@ -14,14 +13,9 @@#include <stdint.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <sys/time.h> #include <sys/wait.h> -#include "drm.h" #include "i915/i915_blt.h" #include "i915/intel_mocs.h"
tests/i915/gem_lut_handle.c +0 -5
@@ -29,15 +29,10 @@#include "igt.h" #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include "drm.h" #include "i915/gem_create.h" IGT_TEST_DESCRIPTION("Exercises the basic execbuffer using the handle LUT"
tests/i915/gem_madvise.c +0 -4
@@ -27,16 +27,12 @@#include "igt.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> #include <setjmp.h> #include <signal.h> -#include "drm.h" #include "i915/gem_create.h" IGT_TEST_DESCRIPTION("Checks that the kernel reports EFAULT when trying to use"
tests/i915/gem_media_fill.c +0 -8
@@ -30,19 +30,11 @@* workload for the Media pipeline. */ -#include <stdbool.h> -#include <unistd.h> #include <stdlib.h> -#include <sys/ioctl.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include "drm.h" #include "i915/gem.h" #include "igt.h"
tests/i915/gem_media_vme.c +0 -9
@@ -20,19 +20,10 @@* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ -#include <stdbool.h> -#include <unistd.h> -#include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include "drm.h" #include "i915/gem.h" #include "igt.h"
tests/i915/gem_mmap.c +0 -4
@@ -28,13 +28,9 @@#include "igt.h" #include <unistd.h> #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include "drm.h" #include "i915/gem_create.h"
tests/i915/gem_mmap_gtt.c +0 -1
@@ -37,7 +37,6 @@#include <signal.h> #include <sys/ioctl.h> #include <sys/ptrace.h> -#include <sys/stat.h> #include <sys/wait.h> #include "drm.h"
tests/i915/gem_mmap_offset.c +0 -1
@@ -28,7 +28,6 @@#include <stdatomic.h> #include <sys/ioctl.h> #include <sys/ptrace.h> -#include <sys/stat.h> #include <sys/wait.h> #include <unistd.h> #include "drm.h"
tests/i915/gem_mmap_wc.c +0 -5
@@ -27,15 +27,10 @@#include "igt.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <pthread.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include "drm.h" #include "i915/gem_create.h"
tests/i915/gem_partial_pwrite_pread.c +0 -6
@@ -28,13 +28,7 @@#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> - -#include <drm.h> #include "i915/gem.h" #include "igt.h"
tests/i915/gem_pipe_control_store_loop.c +0 -6
@@ -31,16 +31,10 @@* Writes a counter-value into an always newly allocated target bo (by disabling * buffer reuse). Decently trashes on tlb inconsistencies, too. */ -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> #include <sys/time.h> -#include "drm.h" #include "i915/gem.h" #include "igt.h"
tests/i915/gem_ppgtt.c +0 -7
@@ -24,17 +24,10 @@#include <stdbool.h> #include <unistd.h> #include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> #include <sys/time.h> -#include <drm.h> -#include "i915/gem.h" #include "i915/gem_create.h" #include "igt.h"
tests/i915/gem_pread.c +0 -2
@@ -34,11 +34,9 @@#include <stdio.h> #include <string.h> #include <fcntl.h> -#include <inttypes.h> #include <errno.h> #include <sys/ioctl.h> #include <sys/resource.h> -#include <sys/stat.h> #include <sys/time.h> #include <pthread.h>
tests/i915/gem_pread_after_blit.c +0 -7
@@ -34,16 +34,9 @@* ranged-buffer-flush paths in the kernel. */ -#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> - -#include <drm.h> #include "i915/gem.h" #include "igt.h"
tests/i915/gem_pwrite.c +0 -2
@@ -34,11 +34,9 @@#include <stdio.h> #include <string.h> #include <fcntl.h> -#include <inttypes.h> #include <errno.h> #include <sys/ioctl.h> #include <sys/resource.h> -#include <sys/stat.h> #include <sys/time.h> #include "drm.h"
tests/i915/gem_pwrite_snooped.c +1 -9
@@ -25,16 +25,8 @@#include <unistd.h> #include <stdlib.h> #include <stdint.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include <sys/time.h> - -#include "drm.h" +#include "i915/gem.h" #include "igt.h"
tests/i915/gem_read_read_speed.c +0 -7
@@ -26,19 +26,12 @@* This is a test of performance with multiple readers from the same source. */ -#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> #include <time.h> -#include <sys/stat.h> #include <sys/time.h> #include <sys/wait.h> -#include <drm.h> -#include "i915/gem.h" #include "igt.h" #include "igt_sysfs.h"
tests/i915/gem_readwrite.c +0 -4
@@ -27,13 +27,9 @@#include "igt.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> #include <sys/ioctl.h> #include "drm.h"
tests/i915/gem_reg_read.c +0 -1
@@ -26,7 +26,6 @@*/ #include "igt.h" -#include <stdio.h> #include <string.h> #include <errno.h> #include <sys/utsname.h>
tests/i915/gem_render_copy.c +0 -9
@@ -30,19 +30,10 @@*/ #include <stdbool.h> -#include <unistd.h> #include <cairo.h> #include <stdlib.h> -#include <sys/ioctl.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> - -#include <drm.h> #include "i915/gem.h" #include "igt.h"
tests/i915/gem_render_copy_redux.c +0 -9
@@ -34,17 +34,8 @@#include <stdbool.h> #include <unistd.h> -#include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> - -#include <drm.h> #include "i915/gem.h" #include "igt.h"
tests/i915/gem_render_linear_blits.c +0 -10
@@ -33,19 +33,9 @@* The goal is to simply ensure the basics work. */ -#include "config.h" -#include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> - -#include <drm.h> #include "i915/gem.h" #include "igt.h"
tests/i915/gem_render_tiled_blits.c +0 -9
@@ -34,18 +34,9 @@*/ #include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> #include <sys/mman.h> -#include <drm.h> -#include "i915/gem.h" #include "igt.h"
tests/i915/gem_request_retire.c +0 -13
@@ -30,21 +30,8 @@* Collection of tests targeting request retirement code paths. */ -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <sys/mman.h> -#include <signal.h> -#include <pthread.h> -#include <time.h> - -#include "drm.h" -#include "i915_drm.h" #include "i915/gem.h" #include "igt.h"
tests/i915/gem_reset_stats.c +0 -4
@@ -31,12 +31,8 @@#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> #include <errno.h> -#include <sys/stat.h> #include <sys/ioctl.h> -#include <sys/mman.h> #include <time.h> #include <signal.h> #include <poll.h>
tests/i915/gem_ringfill.c +0 -2
@@ -37,10 +37,8 @@#include "igt.h" #include "igt_device.h" #include "igt_gt.h" -#include "igt_vgem.h" #include <signal.h> -#include <sys/ioctl.h> #define INTERRUPTIBLE 0x1#define HANG 0x2
tests/i915/gem_set_tiling_vs_blt.c +0 -7
@@ -44,17 +44,10 @@* transitions (i.e. changing stride). */ -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> #include <stdbool.h> -#include "drm.h" #include "i915/gem.h" #include "igt.h"
tests/i915/gem_set_tiling_vs_gtt.c +0 -7
@@ -27,16 +27,9 @@#include "igt.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include "drm.h" #include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Check set_tiling vs gtt mmap coherency." );
tests/i915/gem_set_tiling_vs_pwrite.c +0 -7
@@ -27,16 +27,9 @@#include "igt.h" #include <unistd.h> -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include "drm.h" #include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Check set_tiling vs pwrite coherency." );
tests/i915/gem_streaming_writes.c +1 -8
@@ -29,14 +29,7 @@#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <pthread.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> - -#include "drm.h" +#include "i915/gem.h" #include "i915/gem_create.h" #include "igt.h"
tests/i915/gem_stress.c +0 -8
@@ -51,16 +51,8 @@#include "igt.h" #include <stdlib.h> -#include <sys/ioctl.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> - -#include <drm.h> IGT_TEST_DESCRIPTION ("General gem coherency test." );
tests/i915/gem_sync.c +0 -1
@@ -31,7 +31,6 @@#include "igt_dummyload.h" #include "igt_gt.h" #include "igt.h" -#include "igt_sysfs.h" #define MAX_PRIO I915_CONTEXT_MAX_USER_PRIORITY#define MIN_PRIO I915_CONTEXT_MIN_USER_PRIORITY
tests/i915/gem_tiled_blits.c +0 -7
@@ -42,15 +42,8 @@*/ #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> - -#include <drm.h> #include "i915/gem.h" #include "igt.h"
tests/i915/gem_tiled_partial_pwrite_pread.c +0 -6
@@ -26,13 +26,7 @@*/ #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> -#include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> #include <drm.h>
tests/i915/gem_tiled_pread_basic.c +0 -7
@@ -37,16 +37,9 @@#include "igt.h" #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <sys/ioctl.h> -#include "drm.h" #include "i915/gem_create.h" IGT_TEST_DESCRIPTION("Test pread behavior on tiled objects with respect to the"
tests/i915/gem_tiled_pread_pwrite.c +0 -8
@@ -46,17 +46,9 @@#include "igt.h" #include "igt_x86.h" -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <sys/ioctl.h> -#include "drm.h" #include "i915/gem_create.h" IGT_TEST_DESCRIPTION("Test swizzling by testing pwrite does the inverse of"
tests/i915/gem_tiled_swapping.c +0 -7
@@ -46,17 +46,10 @@#include "igt.h" #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <sys/ioctl.h> #include <pthread.h> -#include "drm.h" #include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Exercise swizzle code for swapping." );
tests/i915/gem_tiled_wb.c +0 -5
@@ -34,14 +34,9 @@#include "igt.h" #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <sys/ioctl.h> #include "drm.h" #include "i915/gem_create.h"
tests/i915/gem_tiled_wc.c +0 -4
@@ -34,14 +34,10 @@#include "igt.h" #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> -#include <sys/stat.h> #include <sys/time.h> -#include <sys/ioctl.h> #include "drm.h" #include "i915/gem_create.h"
tests/i915/gem_tiling_max_stride.c +0 -5
@@ -28,16 +28,11 @@#include "igt.h" #include <unistd.h> #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <errno.h> #include <limits.h> -#include <sys/stat.h> -#include <sys/ioctl.h> -#include "drm.h" #include "i915/gem_create.h" IGT_TEST_DESCRIPTION ("Check that max fence stride works." );
tests/i915/gem_unfence_active_buffers.c +0 -8
@@ -38,17 +38,9 @@* problem - the race window is too small. */ -#include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <stdbool.h> -#include "drm.h" #include "i915/gem.h" #include "i915/gem_create.h" #include "igt.h"
tests/i915/gem_unref_active_buffers.c +0 -1
@@ -33,7 +33,6 @@*/ #include <errno.h> #include <fcntl.h> -#include <inttypes.h> #include <sys/ioctl.h> #include <sys/signal.h> #include <sys/time.h>
tests/i915/gem_userptr_blits.c +0 -1
@@ -47,7 +47,6 @@#include <setjmp.h> #include <sys/ioctl.h> #include <sys/mman.h> -#include <sys/stat.h> #include <sys/syscall.h> #include <sys/time.h> #include <glib.h>
tests/i915/gem_vm_create.c +0 -1
@@ -25,7 +25,6 @@#include "i915/gem_create.h" #include "i915/gem_vm.h" #include "igt.h" -#include "igt_rand.h" #include "igt_dummyload.h" static int vm_create_ioctl (int i915,struct drm_i915_gem_vm_control *ctl)
tests/i915/gem_watchdog.c +0 -2
@@ -21,8 +21,6 @@* IN THE SOFTWARE. */ -#include "config.h" -#include <fcntl.h> #include <sys/ioctl.h> #include <stdio.h>
Signature · 1 line
2.36.1
PATCH 14/14 tests/i915/*: Remove unused headers
In reply to Ryszard KnopUsing CLion's automated code inspection, most unused includes were found and removed. Some warnings remain as CLion is unable to track code usage across certain attributes, but the vast majority of unneeded headers are now gone.
--- tests/i915/api_intel_bb.c | 5 ----- tests/i915/drm_fdinfo.c | 1 - tests/i915/gen3_mixed_blits.c | 7 ------- tests/i915/gen3_render_linear_blits.c | 6 ------ tests/i915/gen3_render_mixed_blits.c | 7 ------- tests/i915/gen3_render_tiledx_blits.c | 7 ------- tests/i915/gen3_render_tiledy_blits.c | 7 ------- tests/i915/gen7_exec_parse.c | 2 -- tests/i915/gen9_exec_parse.c | 1 - tests/i915/i915_hangman.c | 3 --- tests/i915/i915_module_load.c | 4 ---- tests/i915/i915_pm_backlight.c | 1 - tests/i915/i915_pm_dc.c | 1 - tests/i915/i915_pm_lpsp.c | 1 - tests/i915/i915_pm_rpm.c | 4 ---- tests/i915/i915_pm_rps.c | 1 - tests/i915/i915_pm_sseu.c | 1 - tests/i915/i915_suspend.c | 6 ------ tests/i915/kms_dsc.c | 8 -------- tests/i915/kms_fbcon_fbt.c | 1 - tests/i915/kms_fence_pin_leak.c | 3 --- tests/i915/kms_frontbuffer_tracking.c | 1 - tests/i915/kms_mmap_write_crc.c | 2 -- tests/i915/kms_psr.c | 1 - tests/i915/kms_psr2_sf.c | 2 -- tests/i915/kms_psr2_su.c | 2 -- tests/i915/kms_psr_stress_test.c | 3 --- tests/i915/kms_pwrite_crc.c | 4 ---- tests/i915/perf.c | 3 --- tests/i915/perf_pmu.c | 6 ------ tests/i915/sysfs_clients.c | 4 ---- tests/i915/sysfs_defaults.c | 3 --- tests/i915/sysfs_heartbeat_interval.c | 5 ----- tests/i915/sysfs_preempt_timeout.c | 3 --- tests/i915/sysfs_timeslice_duration.c | 3 --- 35 files changed, 119 deletions(-)
tests/i915/api_intel_bb.c +0 -5
@@ -22,18 +22,13 @@*/ #include "igt.h" -#include "i915/gem.h" #include "i915/gem_create.h" #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> #include <cairo.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> #include <glib.h> #include <zlib.h> #include "intel_bufops.h"
tests/i915/drm_fdinfo.c +0 -1
@@ -24,7 +24,6 @@#include "igt.h" #include "igt_core.h" -#include "igt_device.h" #include "igt_drm_fdinfo.h" #include "i915/gem.h" #include "intel_ctx.h"
tests/i915/gen3_mixed_blits.c +0 -7
@@ -34,16 +34,9 @@*/ #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <sys/ioctl.h> -#include "drm.h" #include "i915/gem.h" #include "i915/gem_create.h" #include "i915_reg.h"
tests/i915/gen3_render_linear_blits.c +0 -6
@@ -34,15 +34,9 @@*/ #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include "drm.h" #include "i915/gem.h" #include "i915/gem_create.h" #include "i915_reg.h"
tests/i915/gen3_render_mixed_blits.c +0 -7
@@ -34,16 +34,9 @@*/ #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <sys/ioctl.h> -#include "drm.h" #include "i915/gem.h" #include "i915/gem_create.h" #include "i915_reg.h"
tests/i915/gen3_render_tiledx_blits.c +0 -7
@@ -34,16 +34,9 @@*/ #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <sys/ioctl.h> -#include "drm.h" #include "i915/gem.h" #include "i915/gem_create.h" #include "i915_reg.h"
tests/i915/gen3_render_tiledy_blits.c +0 -7
@@ -34,15 +34,8 @@*/ #include <stdlib.h> -#include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <sys/ioctl.h> -#include "drm.h" #include "i915/gem.h" #include "i915/gem_create.h"
tests/i915/gen7_exec_parse.c +0 -2
@@ -27,8 +27,6 @@#include <stdio.h> #include <errno.h> -#include <drm.h> -#include "igt.h" #include "igt_device.h" #include "i915/gem.h"
tests/i915/gen9_exec_parse.c +0 -1
@@ -26,7 +26,6 @@#include <stdbool.h> #include <stdint.h> #include <stdio.h> -#include <stdlib.h> #include "i915/gem.h" #include "i915/gem_create.h"
tests/i915/i915_hangman.c +0 -3
@@ -26,10 +26,7 @@* */ -#include <limits.h> #include <sys/ioctl.h> -#include <sys/stat.h> -#include <sys/types.h> #include <fcntl.h> #include <signal.h>
tests/i915/i915_module_load.c +0 -4
@@ -22,10 +22,6 @@*/ #include "igt.h" #include <dirent.h> -#include <sys/utsname.h> -#include <linux/limits.h> -#include <signal.h> -#include <libgen.h> #include <signal.h> #include <sys/ioctl.h> #include <fcntl.h>
tests/i915/i915_pm_backlight.c +0 -1
@@ -27,7 +27,6 @@#include "igt.h" #include <limits.h> -#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h>
tests/i915/i915_pm_dc.c +0 -1
@@ -25,7 +25,6 @@#include <errno.h> #include <fcntl.h> #include <stdbool.h> -#include <stdio.h> #include <string.h> #include "igt.h" #include "igt_kmod.h"
tests/i915/i915_pm_lpsp.c +0 -1
@@ -28,7 +28,6 @@#include "igt_kmod.h" #include "igt_pm.h" #include "igt_sysfs.h" -#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h>
tests/i915/i915_pm_rpm.c +0 -4
@@ -25,8 +25,6 @@* */ -#include "config.h" -#include <stdio.h> #include <stdint.h> #include <stdbool.h>
@@ -38,8 +36,6 @@#include <dirent.h> #include <sys/ioctl.h> #include <sys/mman.h> -#include <sys/types.h> -#include <sys/stat.h> #include <linux/i2c.h> #include <linux/i2c-dev.h>
tests/i915/i915_pm_rps.c +0 -1
@@ -34,7 +34,6 @@#include <signal.h> #include <errno.h> #include <time.h> -#include <sys/wait.h> #include "i915/gem.h" #include "igt.h"
tests/i915/i915_pm_sseu.c +0 -1
@@ -27,7 +27,6 @@#include <fcntl.h> #include <unistd.h> #include <string.h> -#include <errno.h> #include <time.h> #include "i915_drm.h"
tests/i915/i915_suspend.c +0 -6
@@ -30,13 +30,7 @@#include <stdlib.h> #include <stdio.h> #include <string.h> -#include <fcntl.h> #include <inttypes.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/ioctl.h> - -#include <drm.h> #include "i915/gem.h" #include "i915/gem_create.h"
tests/i915/kms_dsc.c +0 -8
@@ -30,19 +30,11 @@* */ #include "igt.h" -#include "igt_sysfs.h" -#include <errno.h> -#include <getopt.h> -#include <math.h> #include <stdint.h> #include <stdbool.h> #include <strings.h> #include <unistd.h> #include <stdlib.h> -#include <signal.h> -#include <time.h> -#include <fcntl.h> -#include <termios.h> IGT_TEST_DESCRIPTION ("Test to validate display stream compression" );
tests/i915/kms_fbcon_fbt.c +0 -1
@@ -28,7 +28,6 @@#include "igt_device.h" #include "igt_psr.h" #include "igt_sysfs.h" -#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h>
tests/i915/kms_fence_pin_leak.c +0 -3
@@ -22,10 +22,7 @@* */ -#include <errno.h> -#include <limits.h> #include <stdbool.h> -#include <stdio.h> #include <string.h> #include "i915/gem.h"
tests/i915/kms_frontbuffer_tracking.c +0 -1
@@ -25,7 +25,6 @@*/ #include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> #include <poll.h> #include <pthread.h>
tests/i915/kms_mmap_write_crc.c +0 -2
@@ -25,9 +25,7 @@*/ #include <errno.h> -#include <limits.h> #include <stdbool.h> -#include <stdio.h> #include <string.h> #include "drmtest.h"
tests/i915/kms_psr.c +0 -1
@@ -23,7 +23,6 @@*/ #include "igt.h" -#include "igt_sysfs.h" #include "igt_psr.h" #include <errno.h> #include <stdbool.h>
tests/i915/kms_psr2_sf.c +0 -2
@@ -23,9 +23,7 @@*/ #include "igt.h" -#include "igt_sysfs.h" #include "igt_psr.h" -#include <errno.h> #include <stdbool.h> #include <stdio.h> #include <string.h>
tests/i915/kms_psr2_su.c +0 -2
@@ -23,9 +23,7 @@*/ #include "igt.h" -#include "igt_sysfs.h" #include "igt_psr.h" -#include <errno.h> #include <stdbool.h> #include <stdio.h> #include <string.h>
tests/i915/kms_psr_stress_test.c +0 -3
@@ -1,10 +1,7 @@#include "igt.h" -#include "igt_sysfs.h" #include "igt_psr.h" -#include <errno.h> #include <poll.h> #include <stdbool.h> -#include <stdio.h> #include <string.h> #include <sys/timerfd.h>
tests/i915/kms_pwrite_crc.c +0 -4
@@ -23,10 +23,6 @@*/ #include "igt.h" -#include <errno.h> -#include <limits.h> -#include <stdbool.h> -#include <stdio.h> #include <string.h>
tests/i915/perf.c +0 -3
@@ -30,13 +30,10 @@#include <errno.h> #include <signal.h> #include <sys/stat.h> -#include <sys/time.h> #include <sys/times.h> #include <sys/types.h> -#include <dirent.h> #include <time.h> #include <poll.h> -#include <math.h> #include "i915/gem.h" #include "i915/perf.h"
tests/i915/perf_pmu.c +0 -6
@@ -29,14 +29,8 @@#include <inttypes.h> #include <errno.h> #include <signal.h> -#include <sys/stat.h> -#include <sys/time.h> -#include <sys/times.h> -#include <sys/types.h> -#include <dirent.h> #include <time.h> #include <poll.h> -#include <sched.h> #include "i915/gem.h" #include "i915/gem_create.h"
tests/i915/sysfs_clients.c +0 -4
@@ -5,15 +5,11 @@#include <ctype.h> #include <dirent.h> -#include <errno.h> #include <fcntl.h> #include <inttypes.h> -#include <limits.h> #include <math.h> #include <sched.h> #include <sys/socket.h> -#include <sys/stat.h> -#include <sys/types.h> #include <unistd.h> #include "drmtest.h"
tests/i915/sysfs_defaults.c +0 -3
@@ -22,11 +22,8 @@*/ #include <dirent.h> -#include <errno.h> #include <fcntl.h> -#include <inttypes.h> #include <sys/stat.h> -#include <sys/types.h> #include <unistd.h> #include "drmtest.h"
tests/i915/sysfs_heartbeat_interval.c +0 -5
@@ -24,11 +24,7 @@#include <dirent.h> #include <errno.h> #include <fcntl.h> -#include <inttypes.h> #include <signal.h> -#include <sys/stat.h> -#include <sys/types.h> -#include <sys/wait.h> #include <unistd.h> #include "igt_params.h"
@@ -37,7 +33,6 @@#include "i915/gem_context.h" #include "i915/gem_engine_topology.h" #include "intel_allocator.h" -#include "igt_debugfs.h" #include "igt_dummyload.h" #include "igt_sysfs.h" #include "sw_sync.h"
tests/i915/sysfs_preempt_timeout.c +0 -3
@@ -24,9 +24,7 @@#include <dirent.h> #include <errno.h> #include <fcntl.h> -#include <inttypes.h> #include <sched.h> -#include <sys/types.h> #include <unistd.h> #include "igt.h"
@@ -35,7 +33,6 @@#include "i915/gem.h" #include "i915/gem_context.h" #include "i915/gem_engine_topology.h" -#include "igt_debugfs.h" #include "igt_dummyload.h" #include "igt_sysfs.h" #include "intel_allocator.h"
tests/i915/sysfs_timeslice_duration.c +0 -3
@@ -24,9 +24,6 @@#include <dirent.h> #include <errno.h> #include <fcntl.h> -#include <inttypes.h> -#include <sys/stat.h> -#include <sys/types.h> #include <unistd.h> #include "igt_params.h"
Signature · 1 line
2.36.1