llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [hare-nvme:tls.v13 12/19] drivers/nvme/host/fabrics.c:634:8: error: call to undeclared function 'key_lookup'; ISO C99 and later do not support implicit function declarations
@ 2023-08-14 16:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-14 16:57 UTC (permalink / raw)
  To: Hannes Reinecke; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hare/nvme.git tls.v13
head:   ce525e34ae9d3f5ed12f23caea57c0aa2e8359ee
commit: d523697c96a38b1358cefed16ded3d32dfe171d2 [12/19] nvme-fabrics: parse options 'keyring' and 'tls_key'
config: arm-randconfig-r033-20230814 (https://download.01.org/0day-ci/archive/20230815/202308150000.FH2eXpLb-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230815/202308150000.FH2eXpLb-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/202308150000.FH2eXpLb-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/nvme/host/fabrics.c:634:8: error: call to undeclared function 'key_lookup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     634 |         key = key_lookup(key_id);
         |               ^
>> drivers/nvme/host/fabrics.c:634:6: error: incompatible integer to pointer conversion assigning to 'struct key *' from 'int' [-Wint-conversion]
     634 |         key = key_lookup(key_id);
         |             ^ ~~~~~~~~~~~~~~~~~~
   2 errors generated.


vim +/key_lookup +634 drivers/nvme/host/fabrics.c

   624	
   625	static struct key *nvmf_parse_key(int key_id, char *key_type)
   626	{
   627		struct key *key;
   628	
   629		if (!IS_ENABLED(CONFIG_NVME_TCP_TLS)) {
   630			pr_err("TLS is not supported\n");
   631			return ERR_PTR(-EINVAL);
   632		}
   633	
 > 634		key = key_lookup(key_id);
   635		if (IS_ERR(key))
   636			pr_err("%s %08x not found\n", key_type, key_id);
   637		else
   638			pr_debug("Using %s %08x\n", key_type, key_id);
   639		return key;
   640	}
   641	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-14 16:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-14 16:57 [hare-nvme:tls.v13 12/19] drivers/nvme/host/fabrics.c:634:8: error: call to undeclared function 'key_lookup'; ISO C99 and later do not support implicit function declarations kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).