From: Jani Nikula <jani.nikula@intel.com>
To: "Michał Grzelak" <michal.grzelak@intel.com>,
igt-dev@lists.freedesktop.org
Cc: mohammed.thasleem@intel.com, "Michał Grzelak" <michal.grzelak@intel.com>
Subject: Re: [PATCH i-g-t 5/6] tests/kms_flip: initialize global devid
Date: Tue, 24 Feb 2026 16:21:02 +0200 [thread overview]
Message-ID: <2bd21186c4c45585e4e5589219d5bf3d2f8b5ea3@intel.com> (raw)
In-Reply-To: <20260224133242.1678232-6-michal.grzelak@intel.com>
On Tue, 24 Feb 2026, Michał Grzelak <michal.grzelak@intel.com> wrote:
> Global variable devid is never initialize. Init it at start of the test.
It's never *used* so should be removed instead?
The other ones should be made static, and making them static reveals a
bunch of other unused variables:
diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 49a5f4ed185f..e77a836be4d6 100755
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -269,19 +269,15 @@
static bool all_crtcs = 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 {
>
> Signed-off-by: Michał Grzelak <michal.grzelak@intel.com>
> ---
> tests/kms_flip.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/kms_flip.c b/tests/kms_flip.c
> index ae38096aa..5b3c31ff5 100755
> --- a/tests/kms_flip.c
> +++ b/tests/kms_flip.c
> @@ -2142,6 +2142,8 @@ int igt_main_args("cep", NULL, help_str, opt_handler, NULL)
> igt_fixture() {
> drm_fd = drm_open_driver_master(DRIVER_ANY);
>
> + devid = intel_get_drm_devid(drm_fd);
> +
> igt_display_require(&display, drm_fd);
>
> kmstest_set_vt_graphics_mode();
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-02-24 14:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-24 13:32 [PATCH i-g-t v6 0/6] kms_flip: limit number of subtests run Michał Grzelak
2026-02-24 13:32 ` [PATCH i-g-t 1/6] tests/kms_flip: test suspend on one pair of pipes Michał Grzelak
2026-02-24 13:32 ` [PATCH i-g-t 2/6] tests/kms_flip: run suspend tests on one pipe per output Michał Grzelak
2026-02-24 13:32 ` [PATCH i-g-t 3/6] tests/kms_flip: limit output pairs when testing suspend Michał Grzelak
2026-02-24 13:32 ` [PATCH i-g-t 4/6] tests/kms_flip: limit number of outputs wrt suspend Michał Grzelak
2026-02-24 13:32 ` [PATCH i-g-t 5/6] tests/kms_flip: initialize global devid Michał Grzelak
2026-02-24 14:21 ` Jani Nikula [this message]
2026-02-24 13:32 ` [PATCH i-g-t 6/6] tests/kms_flip: test suspend at most twice on SNB Michał Grzelak
2026-02-24 15:08 ` ✓ Xe.CI.BAT: success for kms_flip: limit number of subtests run (rev6) Patchwork
2026-02-24 15:46 ` ✗ i915.CI.BAT: failure " Patchwork
2026-02-25 1:25 ` ✗ Xe.CI.FULL: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2bd21186c4c45585e4e5589219d5bf3d2f8b5ea3@intel.com \
--to=jani.nikula@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=michal.grzelak@intel.com \
--cc=mohammed.thasleem@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox