[igt-dev] [PATCH i-g-t 07/14] tests/vc4*: Remove unused headers

Ryszard Knop ryszard.knop at intel.com
Tue May 31 14:28:37 UTC 2022


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 <ryszard.knop at intel.com>
---
 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(-)

diff --git a/tests/vc4_create_bo.c b/tests/vc4_create_bo.c
index 99d180a8..dc5d565d 100644
--- a/tests/vc4_create_bo.c
+++ b/tests/vc4_create_bo.c
@@ -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
diff --git a/tests/vc4_dmabuf_poll.c b/tests/vc4_dmabuf_poll.c
index 260e30c3..9027a352 100644
--- a/tests/vc4_dmabuf_poll.c
+++ b/tests/vc4_dmabuf_poll.c
@@ -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"
 
diff --git a/tests/vc4_label_bo.c b/tests/vc4_label_bo.c
index 7510f87d..e77c0a35 100644
--- a/tests/vc4_label_bo.c
+++ b/tests/vc4_label_bo.c
@@ -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
diff --git a/tests/vc4_lookup_fail.c b/tests/vc4_lookup_fail.c
index f0234ee5..0b200514 100644
--- a/tests/vc4_lookup_fail.c
+++ b/tests/vc4_lookup_fail.c
@@ -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"
 
diff --git a/tests/vc4_purgeable_bo.c b/tests/vc4_purgeable_bo.c
index d9f7547f..e0a01d42 100644
--- a/tests/vc4_purgeable_bo.c
+++ b/tests/vc4_purgeable_bo.c
@@ -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 {
diff --git a/tests/vc4_tiling.c b/tests/vc4_tiling.c
index b96fe4ad..06e8e64e 100644
--- a/tests/vc4_tiling.c
+++ b/tests/vc4_tiling.c
@@ -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
diff --git a/tests/vc4_wait_bo.c b/tests/vc4_wait_bo.c
index 65a085a3..eba5a2b5 100644
--- a/tests/vc4_wait_bo.c
+++ b/tests/vc4_wait_bo.c
@@ -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"
 
diff --git a/tests/vc4_wait_seqno.c b/tests/vc4_wait_seqno.c
index bcc263cb..08b85f5b 100644
--- a/tests/vc4_wait_seqno.c
+++ b/tests/vc4_wait_seqno.c
@@ -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
-- 
2.36.1



More information about the igt-dev mailing list