From: sashiko-bot@kernel.org
To: alejandro.lucero-palau@amd.com
Cc: linux-cxl@vger.kernel.org
Subject: Re: [PATCH v31 3/5] sfc: Initialize cxl dpa
Date: Tue, 30 Jun 2026 14:52:33 +0000 [thread overview]
Message-ID: <20260630145233.E9A0B1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260630151346.31201-4-alejandro.lucero-palau@amd.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The patch adds a call to an undefined function `cxl_set_capacity()`, which will cause a build failure.
- [Low] The file includes `<cxl/pci.h>` which does not exist in the source tree, causing a build failure.
--
commit 658adf5bd8fde62f9bb534a3960bfeef69a61055
Author: Alejandro Lucero <alucerop@amd.com>
sfc: Initialize cxl dpa
Use cxl_set_capacity() for DPA initialization as no mailbox is
available.
> diff --git a/drivers/net/ethernet/sfc/efx_cxl.c b/drivers/net/ethernet/sfc/efx_cxl.c
> index 704b0ebae9374..18b535b3ea405 100644
> --- a/drivers/net/ethernet/sfc/efx_cxl.c
> +++ b/drivers/net/ethernet/sfc/efx_cxl.c
> @@ -68,6 +68,11 @@ int efx_cxl_init(struct efx_probe_data *probe_data)
> */
> cxl->cxlds.media_ready = true;
>
> + if (cxl_set_capacity(&cxl->cxlds, EFX_CTPIO_BUFFER_SIZE)) {
[Severity: Low]
Are we calling an undefined function here? cxl_set_capacity() is neither
declared nor defined anywhere in the kernel source tree, which causes a build
failure.
> + pci_err(pci_dev, "dpa capacity setup failed\n");
> + return -ENODEV;
> + }
> +
> probe_data->cxl = cxl;
>
> return 0;
[Severity: Low]
Is there a missing header file in this file? It includes <cxl/pci.h> which
does not exist in the kernel tree, causing a fatal compilation error:
drivers/net/ethernet/sfc/efx_cxl.c:
...
#include <linux/pci.h>
#include <cxl/cxl.h>
#include <cxl/pci.h>
#include "net_driver.h"
...
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260630151346.31201-1-alejandro.lucero-palau@amd.com?part=3
next prev parent reply other threads:[~2026-06-30 14:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 15:13 [PATCH v31 0/5] Type2 device basic support alejandro.lucero-palau
2026-06-30 15:13 ` [PATCH v31 1/5] sfc: add cxl support alejandro.lucero-palau
2026-06-30 15:13 ` [PATCH v31 2/5] sfc: Map cxl regs alejandro.lucero-palau
2026-06-30 14:39 ` sashiko-bot
2026-06-30 15:13 ` [PATCH v31 3/5] sfc: Initialize cxl dpa alejandro.lucero-palau
2026-06-30 14:52 ` sashiko-bot [this message]
2026-06-30 15:13 ` [PATCH v31 4/5] sfc: obtain and map cxl range using devm_cxl_probe_mem alejandro.lucero-palau
2026-06-30 15:04 ` sashiko-bot
2026-06-30 15:13 ` [PATCH v31 5/5] sfc: support pio mapping based on cxl alejandro.lucero-palau
2026-06-30 15:22 ` 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=20260630145233.E9A0B1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=alejandro.lucero-palau@amd.com \
--cc=linux-cxl@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