From: kernel test robot <lkp@intel.com>
To: Hannes Reinecke <hare@kernel.org>,
Keith Busch <kbusch@kernel.org>, Jens Axboe <axboe@kernel.dk>,
Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>,
Hannes Reinecke <hare@suse.de>,
Chaitanya Kulkarni <kch@nvidia.com>,
Eric Biggers <ebiggers@kernel.org>,
David Howells <dhowells@redhat.com>,
Jarkko Sakkinen <jarkko@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>, Kees Cook <kees@kernel.org>,
"Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org,
keyrings@vger.kernel.org, linux-doc@vger.kernel.org,
linux-hardening@vger.kernel.org
Subject: Re: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring
Date: Fri, 27 Nov 2026 03:49:52 +0800 [thread overview]
Message-ID: <20261127034638.jk3QPDaD-lkp@intel.com> (raw)
In-Reply-To: <20261126-dhchap-keyring-v4-v7-5-ee438ffea527@kernel.org>
Hi Hannes,
kernel test robot noticed the following build errors:
[auto build test ERROR on 68099cf27253a8c89d703a282d3d811446d9453b]
url: https://github.com/intel-lab-lkp/linux/commits/Hannes-Reinecke/nvme-auth-modify-nvme_auth_transform_key-to-return-status/20261126-151219
base: 68099cf27253a8c89d703a282d3d811446d9453b
patch link: https://lore.kernel.org/r/20261126-dhchap-keyring-v4-v7-5-ee438ffea527%40kernel.org
patch subject: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring
config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20261127/20261127034638.jk3QPDaD-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project fb29ca8163c3309160711e5a14eb46bc6d4fdad2)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261127/20261127034638.jk3QPDaD-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261127034638.jk3QPDaD-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from drivers/nvme/host/sysfs.c:9:
>> include/linux/nvme-keyring.h:47:5: warning: no previous prototype for function 'nvme_keyring_unlink' [-Wmissing-prototypes]
47 | int nvme_keyring_unlink(struct key *keyring)
| ^
include/linux/nvme-keyring.h:47:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
47 | int nvme_keyring_unlink(struct key *keyring)
| ^
| static
include/linux/nvme-keyring.h:39:20: warning: unused function 'nvme_keyring_name' [-Wunused-function]
39 | static const char *nvme_keyring_name(void)
| ^~~~~~~~~~~~~~~~~
include/linux/nvme-keyring.h:43:12: warning: unused function 'nvme_keyring_link' [-Wunused-function]
43 | static int nvme_keyring_link(struct key *keyring)
| ^~~~~~~~~~~~~~~~~
3 warnings generated.
--
In file included from drivers/nvme/host/fabrics.c:15:
>> include/linux/nvme-keyring.h:47:5: warning: no previous prototype for function 'nvme_keyring_unlink' [-Wmissing-prototypes]
47 | int nvme_keyring_unlink(struct key *keyring)
| ^
include/linux/nvme-keyring.h:47:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
47 | int nvme_keyring_unlink(struct key *keyring)
| ^
| static
include/linux/nvme-keyring.h:39:20: warning: unused function 'nvme_keyring_name' [-Wunused-function]
39 | static const char *nvme_keyring_name(void)
| ^~~~~~~~~~~~~~~~~
2 warnings generated.
--
In file included from drivers/nvme/host/tcp.c:15:
>> include/linux/nvme-keyring.h:47:5: warning: no previous prototype for function 'nvme_keyring_unlink' [-Wmissing-prototypes]
47 | int nvme_keyring_unlink(struct key *keyring)
| ^
include/linux/nvme-keyring.h:47:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
47 | int nvme_keyring_unlink(struct key *keyring)
| ^
| static
>> drivers/nvme/host/tcp.c:2420:34: error: too few arguments to function call, expected 3, have 2
2419 | pskid = nvme_tls_psk_default(ctrl->opts->host->nqn,
| ~~~~~~~~~~~~~~~~~~~~
2420 | ctrl->opts->subsysnqn);
| ^
include/linux/nvme-keyring.h:30:28: note: 'nvme_tls_psk_default' declared here
30 | static inline key_serial_t nvme_tls_psk_default(struct key *keyring,
| ^ ~~~~~~~~~~~~~~~~~~~~
31 | const char *hostnqn, const char *subnqn)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
--
In file included from tcp.c:15:
>> include/linux/nvme-keyring.h:47:5: warning: no previous prototype for function 'nvme_keyring_unlink' [-Wmissing-prototypes]
47 | int nvme_keyring_unlink(struct key *keyring)
| ^
include/linux/nvme-keyring.h:47:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
47 | int nvme_keyring_unlink(struct key *keyring)
| ^
| static
tcp.c:2420:34: error: too few arguments to function call, expected 3, have 2
2419 | pskid = nvme_tls_psk_default(ctrl->opts->host->nqn,
| ~~~~~~~~~~~~~~~~~~~~
2420 | ctrl->opts->subsysnqn);
| ^
include/linux/nvme-keyring.h:30:28: note: 'nvme_tls_psk_default' declared here
30 | static inline key_serial_t nvme_tls_psk_default(struct key *keyring,
| ^ ~~~~~~~~~~~~~~~~~~~~
31 | const char *hostnqn, const char *subnqn)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
vim +2420 drivers/nvme/host/tcp.c
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2409
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2410 static int nvme_tcp_alloc_admin_queue(struct nvme_ctrl *ctrl)
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2411 {
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2412 int ret;
be8e82caa68599 Hannes Reinecke 2023-08-24 2413 key_serial_t pskid = 0;
be8e82caa68599 Hannes Reinecke 2023-08-24 2414
363895767fbfa0 Hannes Reinecke 2024-07-22 2415 if (nvme_tcp_tls_configured(ctrl)) {
adf22c520b5ec4 Hannes Reinecke 2023-08-24 2416 if (ctrl->opts->tls_key)
adf22c520b5ec4 Hannes Reinecke 2023-08-24 2417 pskid = key_serial(ctrl->opts->tls_key);
e88a7595b57f2a Hannes Reinecke 2025-02-24 2418 else if (ctrl->opts->tls) {
83137991c12380 Hannes Reinecke 2026-11-26 2419 pskid = nvme_tls_psk_default(ctrl->opts->host->nqn,
be8e82caa68599 Hannes Reinecke 2023-08-24 @2420 ctrl->opts->subsysnqn);
be8e82caa68599 Hannes Reinecke 2023-08-24 2421 if (!pskid) {
be8e82caa68599 Hannes Reinecke 2023-08-24 2422 dev_err(ctrl->device, "no valid PSK found\n");
ef184b8844bf98 Guixin Liu 2023-12-31 2423 return -ENOKEY;
be8e82caa68599 Hannes Reinecke 2023-08-24 2424 }
be8e82caa68599 Hannes Reinecke 2023-08-24 2425 }
363895767fbfa0 Hannes Reinecke 2024-07-22 2426 }
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2427
be8e82caa68599 Hannes Reinecke 2023-08-24 2428 ret = nvme_tcp_alloc_queue(ctrl, 0, pskid);
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2429 if (ret)
ef184b8844bf98 Guixin Liu 2023-12-31 2430 return ret;
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2431
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2432 ret = nvme_tcp_alloc_async_req(to_tcp_ctrl(ctrl));
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2433 if (ret)
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2434 goto out_free_queue;
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2435
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2436 return 0;
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2437
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2438 out_free_queue:
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2439 nvme_tcp_free_queue(ctrl, 0);
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2440 return ret;
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2441 }
3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2442
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-11-26 19:50 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 14:12 [PATCH v7 00/14] nvme-auth: switch to use the kernel keyring Hannes Reinecke
2026-11-26 14:12 ` [PATCH v7 01/14] nvme-auth: modify nvme_auth_transform_key() to return status Hannes Reinecke
2026-11-26 14:12 ` [PATCH v7 02/14] nvme-keyring: add 'dhchap' key type Hannes Reinecke
2026-11-26 14:12 ` [PATCH v7 03/14] nvme-keyring: drop nvme_tls_psk_revoked() Hannes Reinecke
2026-11-26 14:12 ` [PATCH v7 04/14] Documentation/security/keys: fixup function name Hannes Reinecke
2026-11-26 14:12 ` [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring Hannes Reinecke
2026-11-26 19:49 ` kernel test robot [this message]
2026-11-26 20:22 ` kernel test robot
2026-11-26 14:12 ` [PATCH v7 06/14] nvme-auth: switch to use 'struct key' Hannes Reinecke
2026-11-26 14:12 ` [PATCH v7 07/14] nvme: parse dhchap keys during option parsing Hannes Reinecke
2026-11-26 14:12 ` [PATCH v7 08/14] nvmet-auth: parse dhchap key from configfs attribute Hannes Reinecke
2026-11-26 14:12 ` [PATCH v7 09/14] nvme: allow to pass in key description as dhchap secret Hannes Reinecke
2026-11-26 14:12 ` [PATCH v7 10/14] nvme-auth: allow to specify the key by key serial Hannes Reinecke
2026-11-26 14:12 ` [PATCH v7 11/14] nvme-auth: wait for authentication to finish when changing keys Hannes Reinecke
2026-11-26 14:12 ` [PATCH v7 12/14] nvme-fabrics: allow to pass in keyring by name Hannes Reinecke
2026-11-26 14:12 ` [PATCH v7 13/14] nvme-auth: link pre-provisioned keys into .nvme keyring Hannes Reinecke
2026-11-26 14:12 ` [PATCH v7 14/14] nvme-auth: allow to update pre-provisioned keys Hannes Reinecke
2026-11-26 21:15 ` kernel test robot
2026-11-26 16:00 ` [PATCH v7 00/14] nvme-auth: switch to use the kernel keyring Jarkko Sakkinen
2026-11-26 16:03 ` Jarkko Sakkinen
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=20261127034638.jk3QPDaD-lkp@intel.com \
--to=lkp@intel.com \
--cc=axboe@kernel.dk \
--cc=corbet@lwn.net \
--cc=dhowells@redhat.com \
--cc=ebiggers@kernel.org \
--cc=gustavoars@kernel.org \
--cc=hare@kernel.org \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=jarkko@kernel.org \
--cc=kbusch@kernel.org \
--cc=kch@nvidia.com \
--cc=kees@kernel.org \
--cc=keyrings@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rdunlap@infradead.org \
--cc=sagi@grimberg.me \
--cc=skhan@linuxfoundation.org \
/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
all inboxes | Powered by JetHome®