From: Alison Schofield <alison.schofield@intel.com>
To: <cp0613@linux.alibaba.com>
Cc: <ishal.l.verma@intel.com>, <nvdimm@lists.linux.dev>,
<linux-cxl@vger.kernel.org>
Subject: Re: [ndctl PATCH 1/2] ndctl: Fix missing key_type parameter in ndctl_dimm_remove_key stub
Date: Wed, 18 Mar 2026 17:45:35 -0700 [thread overview]
Message-ID: <abtHL3-V7pZpPvib@aschofie-mobl2.lan> (raw)
In-Reply-To: <20260310024102.25682-2-cp0613@linux.alibaba.com>
On Tue, Mar 10, 2026 at 10:41:01AM +0800, cp0613@linux.alibaba.com wrote:
> From: Chen Pei <cp0613@linux.alibaba.com>
>
> When fwctl is disabled, the following compilation error occurs:
>
Thanks for the patch Chen Pei!
This failure does not appear to be tied to -Dfwctl=disabled.
The mismatch is gated by ENABLE_KEYUTILS in keys.h, so this
should be reproducible when keytuils support is disabled,
not fwctl.
Please update the commit message to reflect the correct
configuration trigger.
Send a v2 of this patch alone, since I've already applied
the other patch in this series.
-- Alison
> ../ndctl/dimm.c: In function ‘action_remove_passphrase’:
> ../ndctl/dimm.c:1030:16: error: too many arguments to function ‘ndctl_dimm_remove_key’
> 1030 | return ndctl_dimm_remove_key(dimm, param.master_pass ? ND_MASTER_KEY :
> | ^~~~~~~~~~~~~~~~~~~~~
> In file included from ../ndctl/dimm.c:25:
> ../ndctl/keys.h:51:19: note: declared here
> 51 | static inline int ndctl_dimm_remove_key(struct ndctl_dimm *dimm)
> | ^~~~~~~~~~~~~~~~~~~~~
>
> This patch fixes the issue by adding the missing key_type parameter to
> the stub declaration of ndctl_dimm_remove_key in keys.h, ensuring the
> function signature matches its usage.
>
> Fixes: a79375a9b0cd ("ndctl: Add master-passphrase removal support")
>
> Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
> ---
> ndctl/keys.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/ndctl/keys.h b/ndctl/keys.h
> index ce71ff2..b60c209 100644
> --- a/ndctl/keys.h
> +++ b/ndctl/keys.h
> @@ -48,7 +48,8 @@ static inline int ndctl_dimm_update_key(struct ndctl_dimm *dimm,
> return -EOPNOTSUPP;
> }
>
> -static inline int ndctl_dimm_remove_key(struct ndctl_dimm *dimm)
> +static inline int ndctl_dimm_remove_key(struct ndctl_dimm *dimm,
> + enum ndctl_key_type key_type)
> {
> return -EOPNOTSUPP;
> }
> --
> 2.43.0
>
next prev parent reply other threads:[~2026-03-19 0:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-10 2:41 [ndctl PATCH 0/2] ndctl: Fix build issues when fwctl is disabled cp0613
2026-03-10 2:41 ` [ndctl PATCH 1/2] ndctl: Fix missing key_type parameter in ndctl_dimm_remove_key stub cp0613
2026-03-19 0:45 ` Alison Schofield [this message]
2026-03-10 2:41 ` [ndctl PATCH 2/2] ndctl/test: Fix meson configuration error when fwctl is disabled cp0613
2026-03-19 0:39 ` Alison Schofield
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=abtHL3-V7pZpPvib@aschofie-mobl2.lan \
--to=alison.schofield@intel.com \
--cc=cp0613@linux.alibaba.com \
--cc=ishal.l.verma@intel.com \
--cc=linux-cxl@vger.kernel.org \
--cc=nvdimm@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.