Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id D574E113339 for ; Tue, 31 May 2022 14:29:42 +0000 (UTC) From: Ryszard Knop To: Development mailing list for IGT GPU Tools Date: Tue, 31 May 2022 16:28:34 +0200 Message-Id: <20220531142844.278366-4-ryszard.knop@intel.com> In-Reply-To: <20220531142844.278366-1-ryszard.knop@intel.com> References: <20220531142844.278366-1-ryszard.knop@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 04/14] overlay: Remove unused headers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: 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 --- 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(-) diff --git a/overlay/config.c b/overlay/config.c index b6bd8dc3..30c6c1c7 100644 --- a/overlay/config.c +++ b/overlay/config.c @@ -22,7 +22,6 @@ * */ -#include #include #include #include @@ -31,7 +30,6 @@ #include #include #include -#include #include "overlay.h" diff --git a/overlay/gem-interrupts.c b/overlay/gem-interrupts.c index be73b693..d1de17db 100644 --- a/overlay/gem-interrupts.c +++ b/overlay/gem-interrupts.c @@ -22,7 +22,6 @@ * */ -#include #include #include #include diff --git a/overlay/gpu-top.c b/overlay/gpu-top.c index 32123abd..c073df3f 100644 --- a/overlay/gpu-top.c +++ b/overlay/gpu-top.c @@ -23,13 +23,8 @@ */ #include -#include -#include #include #include -#include -#include -#include #include "igt_perf.h" diff --git a/overlay/kms/kms-overlay.c b/overlay/kms/kms-overlay.c index cfb3d5ae..4c936c55 100644 --- a/overlay/kms/kms-overlay.c +++ b/overlay/kms/kms-overlay.c @@ -22,7 +22,6 @@ * */ -#include #include #include #include @@ -38,7 +37,6 @@ #include #include #include "../overlay.h" -//#include "rgb2yuv.h" #ifndef ALIGN #define ALIGN(i,m) (((i) + (m) - 1) & ~((m) - 1)) diff --git a/overlay/overlay.c b/overlay/overlay.c index fdc62091..dc36af1d 100644 --- a/overlay/overlay.c +++ b/overlay/overlay.c @@ -23,7 +23,6 @@ */ #include -#include #include #include #include @@ -39,7 +38,6 @@ #include "overlay.h" #include "chart.h" -#include "config.h" #include "cpu-top.h" #include "debugfs.h" #include "gem-interrupts.h" diff --git a/overlay/power.c b/overlay/power.c index 76fafea9..1027b28a 100644 --- a/overlay/power.c +++ b/overlay/power.c @@ -24,11 +24,9 @@ #include #include -#include #include #include #include -#include #include #include #include @@ -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) diff --git a/overlay/rc6.c b/overlay/rc6.c index 69f95f28..33553428 100644 --- a/overlay/rc6.c +++ b/overlay/rc6.c @@ -24,7 +24,6 @@ #include #include -#include #include #include #include diff --git a/overlay/x11/dri2.c b/overlay/x11/dri2.c index 6c9e90d6..7459f31a 100644 --- a/overlay/x11/dri2.c +++ b/overlay/x11/dri2.c @@ -30,7 +30,6 @@ * Kristian Høgsberg (krh@redhat.com) */ -#include #include #include #include diff --git a/overlay/x11/position.c b/overlay/x11/position.c index 9e3db370..e18934d2 100644 --- a/overlay/x11/position.c +++ b/overlay/x11/position.c @@ -22,15 +22,12 @@ * */ -#include "config.h" - #include #ifdef HAVE_XRANDR #include #endif #include #include -#include #include "position.h" #include "../overlay.h" diff --git a/overlay/x11/x11-overlay.c b/overlay/x11/x11-overlay.c index ac6b5f39..f14fc2d9 100644 --- a/overlay/x11/x11-overlay.c +++ b/overlay/x11/x11-overlay.c @@ -24,10 +24,8 @@ #include #include -#include #include #include -#include #include #include #include diff --git a/overlay/x11/x11-window.c b/overlay/x11/x11-window.c index 6bdc48c2..3d2ed065 100644 --- a/overlay/x11/x11-window.c +++ b/overlay/x11/x11-window.c @@ -25,11 +25,9 @@ #include #include #include -#include #include #include #include -#include #include "../overlay.h" #include "position.h" -- 2.36.1