[linux-nvme:nvme-6.19 6/13] drivers/nvme/target/../host/nvme.h:1205:27: error: static declaration of 'nvme_auth_extract_key' follows non-static declaration

kernel test robot lkp at intel.com
Thu Oct 9 10:20:48 PDT 2025


tree:   git://git.infradead.org/nvme.git nvme-6.19
head:   00e104767fe39da1798a35eb0e63663621b77556
commit: f59ae5c9e356b5eb50342ce962eb35799aa5c552 [6/13] nvme: parse dhchap keys during option parsing
config: hexagon-randconfig-002-20251009 (https://download.01.org/0day-ci/archive/20251010/202510100105.cibujuUJ-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251010/202510100105.cibujuUJ-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202510100105.cibujuUJ-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/nvme/target/loop.c:13:
>> drivers/nvme/target/../host/nvme.h:1205:27: error: static declaration of 'nvme_auth_extract_key' follows non-static declaration
    1205 | static inline struct key *nvme_auth_extract_key(struct key *keyring,
         |                           ^
   drivers/nvme/target/nvmet.h:896:13: note: previous declaration is here
     896 | struct key *nvme_auth_extract_key(struct key *keyring, const u8 *secret,
         |             ^
   1 error generated.


vim +/nvme_auth_extract_key +1205 drivers/nvme/target/../host/nvme.h

  1170	
  1171	#ifdef CONFIG_NVME_HOST_AUTH
  1172	int __init nvme_init_auth(void);
  1173	void __exit nvme_exit_auth(void);
  1174	int nvme_auth_init_ctrl(struct nvme_ctrl *ctrl);
  1175	void nvme_auth_stop(struct nvme_ctrl *ctrl);
  1176	int nvme_auth_negotiate(struct nvme_ctrl *ctrl, int qid);
  1177	int nvme_auth_wait(struct nvme_ctrl *ctrl, int qid);
  1178	void nvme_auth_free(struct nvme_ctrl *ctrl);
  1179	void nvme_auth_revoke_tls_key(struct nvme_ctrl *ctrl);
  1180	struct key *nvme_auth_extract_key(struct key *keyring, const u8 *secret,
  1181					  size_t secret_len, bool *generated);
  1182	#else
  1183	static inline int nvme_auth_init_ctrl(struct nvme_ctrl *ctrl)
  1184	{
  1185		return 0;
  1186	}
  1187	static inline int __init nvme_init_auth(void)
  1188	{
  1189		return 0;
  1190	}
  1191	static inline void __exit nvme_exit_auth(void)
  1192	{
  1193	}
  1194	static inline void nvme_auth_stop(struct nvme_ctrl *ctrl) {};
  1195	static inline int nvme_auth_negotiate(struct nvme_ctrl *ctrl, int qid)
  1196	{
  1197		return -EPROTONOSUPPORT;
  1198	}
  1199	static inline int nvme_auth_wait(struct nvme_ctrl *ctrl, int qid)
  1200	{
  1201		return -EPROTONOSUPPORT;
  1202	}
  1203	static inline void nvme_auth_free(struct nvme_ctrl *ctrl) {};
  1204	static inline void nvme_auth_revoke_tls_key(struct nvme_ctrl *ctrl) {};
> 1205	static inline struct key *nvme_auth_extract_key(struct key *keyring,
  1206							const u8 *secret,
  1207							size_t secret_len,
  1208							bool *generated)
  1209	{
  1210		return ERR_PTR(-ENOKEY);
  1211	}
  1212	#endif
  1213	

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



More information about the Linux-nvme mailing list