Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Eric Curtin" <ericcurtin17@gmail.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [RFC PATCH v2 4/5] RDMA/efa: Check EFA_CHUNK_PAYLOAD_SIZE against PAGE_SIZE_MIN
Date: Wed, 02 Dec 2026 03:31:09 +0000	[thread overview]
Message-ID: <sashiko-outbox-244786@kernel.org> (raw)
In-Reply-To: <20261202032044.1705331-5-ericcurtin17@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] RDMA/efa: undeclared PAGE_SIZE_MIN in pbl_indirect_initialize()
  breaks build
--

commit 91d66f3b0542356c1efcafa903e48e7d4de94576
Author: Eric Curtin <eric.curtin@docker.com>

RDMA/efa: Check EFA_CHUNK_PAYLOAD_SIZE against PAGE_SIZE_MIN

This commit replaces PAGE_SIZE with PAGE_SIZE_MIN in the BUILD_BUG_ON()
check in pbl_indirect_initialize().

> diff --git a/drivers/infiniband/hw/efa/efa_verbs.c b/drivers/infiniband/hw/efa/efa_verbs.c
> index d56eb132545b5..1c27484e5b399 100644
> --- a/drivers/infiniband/hw/efa/efa_verbs.c
> +++ b/drivers/infiniband/hw/efa/efa_verbs.c
> @@ -1478,7 +1478,7 @@ static int pbl_indirect_initialize(struct efa_dev *dev, struct pbl_context *pbl)
>  	struct scatterlist *sgl;
>  	int sg_dma_cnt, err;
>  
> -	BUILD_BUG_ON(EFA_CHUNK_PAYLOAD_SIZE > PAGE_SIZE);
> +	BUILD_BUG_ON(EFA_CHUNK_PAYLOAD_SIZE > PAGE_SIZE_MIN);

[Severity: High]
Does this break the build when CONFIG_INFINIBAND_EFA is enabled?
PAGE_SIZE_MIN is not defined anywhere in the kernel headers, so compiling
drivers/infiniband/hw/efa/efa_verbs.c fails with an undeclared identifier
error.

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

  reply	other threads:[~2026-12-02  3:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20261202032044.1705331-1-ericcurtin17@gmail.com>
2026-12-02  3:17 ` [RFC PATCH v2 1/5] RDMA/mthca: Make the direct buffer size limits macros Eric Curtin
2026-12-02  3:17 ` [RFC PATCH v2 2/5] RDMA/mlx5: Use PAGE_SIZE_MIN/MAX in build-time page size checks Eric Curtin
2026-12-02  3:28   ` sashiko-bot
2026-12-02  3:17 ` [RFC PATCH v2 3/5] RDMA/hns: Size the doorbell bitmaps for PAGE_SIZE_MAX Eric Curtin
2026-12-02  3:29   ` sashiko-bot
2026-12-02  3:17 ` [RFC PATCH v2 4/5] RDMA/efa: Check EFA_CHUNK_PAYLOAD_SIZE against PAGE_SIZE_MIN Eric Curtin
2026-12-02  3:31   ` sashiko-bot [this message]
2026-12-02  3:17 ` [RFC PATCH v2 5/5] RDMA: Avoid compile-time PAGE_SIZE in FRMR pools, IPoIB and uverbs Eric Curtin
2026-12-02  3:36   ` sashiko-bot

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-244786@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=ericcurtin17@gmail.com \
    --cc=linux-rdma@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