Linux Test Project
 help / color / mirror / Atom feed
From: linuxtestproject.agent@gmail.com
To: priyama2 <priyama2@linux.ibm.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] testcases/kernel/device-drivers/nvme: Add NVMe device discovery test
Date: Thu, 30 Apr 2026 06:35:08 +0000	[thread overview]
Message-ID: <20260430063508.4014-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260501151420.1042995-1-priyama2@linux.ibm.com>

Hi priyama2,

On Fri, 1 May 2026 15:14:20 +0000, priyama2 wrote:
> +++ b/testcases/kernel/device-drivers/nvme/Makefile
> +# Copyright (c) 2024 IBM Corporation

This file is new and added in 2026; the copyright year must match the
year of creation. Change 2024 -> 2026.

[...]

> +static int nvme_device_found;
> +static char nvme_dev_name[256];

[...]

> +static void run(unsigned int n)
> +{
> +	/* Reset state for each iteration */
> +	nvme_device_found = 0;
> +	memset(nvme_dev_name, 0, sizeof(nvme_dev_name));
> +
> +	switch (n) {
> +	case 0:
> +		test_detect_nvme_controllers();
> +		break;
> +	case 1:
> +		test_enumerate_namespaces();

With .tcnt = 4, each run(n) is a separate call, so the reset at the top
zeroes out nvme_device_found before cases 1-3 can use the value set by
case 0. On a machine with NVMe hardware, cases 1-3 always TCONF. Move
the device discovery into setup() so the state persists across all run()
invocations.

---
Note:

Our agent completed the review of the patch. The full review can be
found at: https://github.com/linux-test-project/ltp-agent/actions/runs/25150858409

The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2026-04-30  6:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260428075302.7320ef7e3@imap1.dmz-prg2.suse.org>
2026-04-30 15:52 ` [LTP] [PATCH v2] testcases/nvme: Add NVMe device discovery and identification test priyama2
2026-04-29  7:33   ` [LTP] " linuxtestproject.agent
2026-05-01 15:14 ` [LTP] [PATCH v3] testcases/kernel/device-drivers/nvme: Add NVMe device discovery test priyama2
2026-04-30  6:35   ` linuxtestproject.agent [this message]
2026-05-04 10:40   ` Andrea Cervesato via ltp
2026-05-05  3:46   ` Sebastian Chlad
2026-05-05  8:45     ` Daniel Wagner
2026-05-05 13:26       ` Daniel Wagner

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=20260430063508.4014-1-linuxtestproject.agent@gmail.com \
    --to=linuxtestproject.agent@gmail.com \
    --cc=ltp@lists.linux.it \
    --cc=priyama2@linux.ibm.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