tools: Remove unused headers
PATCH 12/14 tools: 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.
Signed-off-by Ryszard Knop <[email protected]>
--- 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