[igt-dev] [PATCH i-g-t 08/14] tests/v3d*: Remove unused headers
Ryszard Knop
ryszard.knop at intel.com
Tue May 31 14:28:38 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/v3d_get_bo_offset.c | 7 -------
tests/v3d_get_param.c | 7 -------
tests/v3d_mmap.c | 9 ---------
3 files changed, 23 deletions(-)
diff --git a/tests/v3d_get_bo_offset.c b/tests/v3d_get_bo_offset.c
index 0923dc85..3b32a203 100644
--- a/tests/v3d_get_bo_offset.c
+++ b/tests/v3d_get_bo_offset.c
@@ -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
{
diff --git a/tests/v3d_get_param.c b/tests/v3d_get_param.c
index 76563406..5759f41a 100644
--- a/tests/v3d_get_param.c
+++ b/tests/v3d_get_param.c
@@ -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
{
diff --git a/tests/v3d_mmap.c b/tests/v3d_mmap.c
index a6fe7e5a..d8d9a03e 100644
--- a/tests/v3d_mmap.c
+++ b/tests/v3d_mmap.c
@@ -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
{
--
2.36.1
More information about the igt-dev
mailing list