Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Eric Curtin" <ericcurtin17@gmail.com>
Cc: linux-nvme@lists.infradead.org
Subject: Re: [RFC PATCH v2 09/13] nvme: Check the DSM range buffer against PAGE_SIZE_MIN
Date: Thu, 03 Dec 2026 03:17:43 +0000	[thread overview]
Message-ID: <sashiko-outbox-247081@kernel.org> (raw)
In-Reply-To: <20261202031647.1690622-10-ericcurtin17@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] nvme: undeclared PAGE_SIZE_MIN in nvme_init_ctrl() causes build
  failure
--

commit 9c7e9e9075d6fda20403c65db3c4db9a9e5c437e
Author: Ryan Roberts <ryan.roberts@arm.com>

nvme: Check the DSM range buffer against PAGE_SIZE_MIN

This commit updates the BUILD_BUG_ON() check in nvme_init_ctrl() to
compare the DSM range buffer size against PAGE_SIZE_MIN instead of
PAGE_SIZE.

> diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
> index f43582e5f6c4a..8cf78eff9cff3 100644
> --- a/drivers/nvme/host/core.c
> +++ b/drivers/nvme/host/core.c
> @@ -5295,7 +5295,7 @@ int nvme_init_ctrl(struct nvme_ctrl *ctrl, struct device *dev,
>  	ctrl->io_timeout = NVME_IO_TIMEOUT;
>  
>  	BUILD_BUG_ON(NVME_DSM_MAX_RANGES * sizeof(struct nvme_dsm_range) >
> -			PAGE_SIZE);
> +			PAGE_SIZE_MIN);

[Severity: High]
Is a prerequisite patch defining PAGE_SIZE_MIN missing from this series?
PAGE_SIZE_MIN is not defined in include/vdso/page.h or anywhere else in
the kernel tree, so compiling drivers/nvme/host/core.c fails with an
undeclared identifier error.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202031647.1690622-1-ericcurtin17@gmail.com?part=9


      reply	other threads:[~2026-12-03  3:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20261202031647.1690622-1-ericcurtin17@gmail.com>
2026-12-02  3:16 ` [RFC PATCH v2 09/13] nvme: Check the DSM range buffer against PAGE_SIZE_MIN Eric Curtin
2026-12-03  3:17   ` 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=sashiko-outbox-247081@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=ericcurtin17@gmail.com \
    --cc=linux-nvme@lists.infradead.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