oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [hare-nvme:secure-concat.v4 7/20] include/linux/nvme-keyring.h:23:16: warning: returning 'int' from a function with return type 'struct key *' makes pointer from integer without a cast
@ 2024-05-10 18:53 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-10 18:53 UTC (permalink / raw)
  To: Hannes Reinecke; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hare/nvme.git secure-concat.v4
head:   8986008182ed104f529376181e6cfd13efa627e2
commit: f8255728afb5a8dc18988742ac844e0b690b5288 [7/20] nvme-keyring: add nvme_tls_psk_refresh()
config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20240511/202405110213.cB399tLO-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240511/202405110213.cB399tLO-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/202405110213.cB399tLO-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/nvme/target/configfs.c:18:
   include/linux/nvme-keyring.h: In function 'nvme_tls_psk_refresh':
>> include/linux/nvme-keyring.h:23:16: warning: returning 'int' from a function with return type 'struct key *' makes pointer from integer without a cast [-Wint-conversion]
      23 |         return -ENOTSUPP;
         |                ^
   include/linux/nvme-keyring.h: At top level:
>> include/linux/nvme-keyring.h:20:20: warning: 'nvme_tls_psk_refresh' defined but not used [-Wunused-function]
      20 | static struct key *nvme_tls_psk_refresh(struct key *keyring, char *hostnqn, char *subnqn,
         |                    ^~~~~~~~~~~~~~~~~~~~


vim +23 include/linux/nvme-keyring.h

    19	
  > 20	static struct key *nvme_tls_psk_refresh(struct key *keyring, char *hostnqn, char *subnqn,
    21			u8 hmac_id, bool generated, u8 *data, size_t data_len, char *digest)
    22	{
  > 23		return -ENOTSUPP;

-- 
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:[~2024-05-10 18:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10 18:53 [hare-nvme:secure-concat.v4 7/20] include/linux/nvme-keyring.h:23:16: warning: returning 'int' from a function with return type 'struct key *' makes pointer from integer without a cast 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).