Re: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring

From: kernel test robot

Date: Thu Nov 26 2026 - 15:23:41 EST


Hi Hannes,

kernel test robot noticed the following build warnings:

[auto build test WARNING 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: i386-randconfig-1003-20261126 (https://download.01.org/0day-ci/archive/20261127/20261127041445.UXBLiTUG-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261127/20261127041445.UXBLiTUG-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/20261127041445.UXBLiTUG-lkp@xxxxxxxxx/

All 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 'nvme_keyring_unlink' [-Wmissing-prototypes]
47 | int nvme_keyring_unlink(struct key *keyring)
| ^~~~~~~~~~~~~~~~~~~
>> include/linux/nvme-keyring.h:43:12: warning: 'nvme_keyring_link' defined but not used [-Wunused-function]
43 | static int nvme_keyring_link(struct key *keyring)
| ^~~~~~~~~~~~~~~~~
>> include/linux/nvme-keyring.h:39:20: warning: 'nvme_keyring_name' defined but not used [-Wunused-function]
39 | static const char *nvme_keyring_name(void)
| ^~~~~~~~~~~~~~~~~


vim +/nvme_keyring_unlink +47 include/linux/nvme-keyring.h

22
23 #else
24 static inline struct key *nvme_tls_psk_refresh(struct key *keyring,
25 const char *hostnqn, const char *subnqn, u8 hmac_id,
26 u8 *data, size_t data_len, const char *digest)
27 {
28 return ERR_PTR(-EOPNOTSUPP);
29 }
30 static inline key_serial_t nvme_tls_psk_default(struct key *keyring,
31 const char *hostnqn, const char *subnqn)
32 {
33 return 0;
34 }
35 static inline key_serial_t nvme_keyring_id(void)
36 {
37 return 0;
38 }
> 39 static const char *nvme_keyring_name(void)
40 {
41 return NULL;
42 }
> 43 static int nvme_keyring_link(struct key *keyring)
44 {
45 return 0;
46 }
> 47 int nvme_keyring_unlink(struct key *keyring)

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki