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

Ryszard Knop ryszard.knop at intel.com
Tue May 31 14:28:39 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/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(-)

diff --git a/tests/panfrost_gem_new.c b/tests/panfrost_gem_new.c
index 940525ff..7e753f82 100644
--- a/tests/panfrost_gem_new.c
+++ b/tests/panfrost_gem_new.c
@@ -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
diff --git a/tests/panfrost_get_param.c b/tests/panfrost_get_param.c
index 11c2632b..943d62eb 100644
--- a/tests/panfrost_get_param.c
+++ b/tests/panfrost_get_param.c
@@ -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
diff --git a/tests/panfrost_prime.c b/tests/panfrost_prime.c
index 40ba036b..02eb6507 100644
--- a/tests/panfrost_prime.c
+++ b/tests/panfrost_prime.c
@@ -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)
diff --git a/tests/panfrost_submit.c b/tests/panfrost_submit.c
index 4747d295..fb7c0e58 100644
--- a/tests/panfrost_submit.c
+++ b/tests/panfrost_submit.c
@@ -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"
 
-- 
2.36.1



More information about the igt-dev mailing list