From: sashiko-bot@kernel.org
To: "Artem Dinaburg" <artem@trailofbits.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [RFC PATCH 3/3] scsi: lpfc: Add KUnit tests for mailbox wait ownership
Date: Sun, 04 Oct 2026 03:55:51 +0000 [thread overview]
Message-ID: <20261004035551.D799C1F0089B@smtp.kernel.org> (raw)
In-Reply-To: <72eb0bf397cb0cd72a0fbc75a05f0be93c65bfaa.1790968549.git.artem@trailofbits.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] scsi: lpfc: missing -I$(src) in Makefile causes test build failure
--
commit 58bda9d071979b03b73e5787531c133618f4a219
Author: Artem Dinaburg <artem@trailofbits.com>
scsi: lpfc: Add KUnit tests for mailbox wait ownership
This commit adds KUnit tests for synchronous LPFC mailbox wait and
completion ownership. It replaces the mailbox issue callback to exercise
behavior without physical LPFC hardware and checks various error and
timeout scenarios.
> diff --git a/drivers/scsi/lpfc/Makefile b/drivers/scsi/lpfc/Makefile
> index bbd1faf41e806..d2b1f0990b7d7 100644
> --- a/drivers/scsi/lpfc/Makefile
> +++ b/drivers/scsi/lpfc/Makefile
> @@ -34,3 +34,5 @@ lpfc-objs := lpfc_mem.o lpfc_sli.o lpfc_ct.o lpfc_els.o \
> lpfc_hbadisc.o lpfc_init.o lpfc_mbox.o lpfc_nportdisc.o \
> lpfc_scsi.o lpfc_attr.o lpfc_vport.o lpfc_debugfs.o lpfc_bsg.o \
> lpfc_nvme.o lpfc_nvmet.o lpfc_vmid.o
> +
> +lpfc-$(CONFIG_LPFC_MBOX_KUNIT_TEST) += tests/mbox_kunit.o
[Severity: Low]
Will this cause a build failure when compiling in-tree with
CONFIG_LPFC_MBOX_KUNIT_TEST=y? The Makefile appends the test object to
lpfc-y, but does not appear to add ccflags-y += -I$(src) to allow the
subdirectory to find the parent headers.
> diff --git a/drivers/scsi/lpfc/tests/mbox_kunit.c b/drivers/scsi/lpfc/tests/mbox_kunit.c
> new file mode 100644
> index 0000000000000..2bdc2d5fcadaf
> --- /dev/null
> +++ b/drivers/scsi/lpfc/tests/mbox_kunit.c
[ ... ]
> +#include <scsi/scsi_transport_fc.h>
> +
> +#include "lpfc_hw4.h"
> +#include "lpfc_hw.h"
> +#include "lpfc_sli.h"
> +#include "lpfc_sli4.h"
[Severity: Low]
Since these includes use paths relative to the parent directory but lack the
../ prefix, don't they rely on an explicit -I directive in the Makefile to
compile correctly? Without it, the compiler will look in the tests directory
first and fail with a missing file error.
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1790968549.git.artem@trailofbits.com?part=3
prev parent reply other threads:[~2026-10-04 3:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-04 3:41 [RFC PATCH 0/3] scsi: lpfc: Fix mailbox timeout ownership races Artem Dinaburg
2026-10-04 3:41 ` [RFC PATCH 1/3] scsi: lpfc: Do not touch the SFP mailbox after a wait timeout Artem Dinaburg
2026-10-04 3:41 ` [RFC PATCH 2/3] scsi: lpfc: Resolve synchronous mailbox wait ownership under hbalock Artem Dinaburg
2026-10-04 3:41 ` [RFC PATCH 3/3] scsi: lpfc: Add KUnit tests for mailbox wait ownership Artem Dinaburg
2026-10-04 3:55 ` sashiko-bot [this message]
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=20261004035551.D799C1F0089B@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=artem@trailofbits.com \
--cc=linux-scsi@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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