Re: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring
From: kernel test robot
Date: Thu Nov 26 2026 - 14:50:42 EST
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@xxxxxxxxx/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@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261127034638.jk3QPDaD-lkp@xxxxxxxxx/
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