[PATCH i-g-t v8 5/6] tests/kms_flip: staticize & remove unused global vars

Michał Grzelak
2026-03-09T09:25:49Z

Global variables devid, fb_ptr and test_time are never used. Remove
them. Staticize leftover global vars.

Signed-off-by: Michał Grzelak <michal.grzelak@intel.com>
---
tests/kms_flip.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index ae38096aa..f17d027cc 100755
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -274,19 +274,15 @@ static bool all_crtcs = false;
static bool all_conns = false;
static bool all_pairs = false;

-drmModeRes *resources;
-int drm_fd;
+static drmModeRes *resources;
+static int drm_fd;
static struct buf_ops *bops;
-uint32_t devid;
-int test_time = 3;
static bool monotonic_timestamp;
static pthread_t vblank_wait_thread;
static int max_dotclock;

static drmModeConnector *last_connector;

-uint32_t *fb_ptr;
-
static igt_display_t display;

struct type_name {
--
2.45.2