oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [hare-scsi-devel:tls-netlink.v7 17/20] drivers/nvme/target/tcp.c:1729: undefined reference to `nvme_keyring_id'
@ 2023-03-21 22:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-21 22:08 UTC (permalink / raw)
  To: Hannes Reinecke; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git tls-netlink.v7
head:   5c13b43fa2c503188a6d668b0dec6a22078329a2
commit: 7754017009ada8fe29201a4add622e6406ea16b0 [17/20] nvmet-tcp: enable TLS handshake upcall
config: x86_64-randconfig-a015 (https://download.01.org/0day-ci/archive/20230322/202303220637.fkIobSiO-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commit/?id=7754017009ada8fe29201a4add622e6406ea16b0
        git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
        git fetch --no-tags hare-scsi-devel tls-netlink.v7
        git checkout 7754017009ada8fe29201a4add622e6406ea16b0
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303220637.fkIobSiO-lkp@intel.com/

All errors (new ones prefixed by >>):

   ld: vmlinux.o: in function `nvmet_tcp_tls_handshake':
>> drivers/nvme/target/tcp.c:1729: undefined reference to `nvme_keyring_id'
   ld: vmlinux.o: in function `nvme_core_init':
   drivers/nvme/host/core.c:5419: undefined reference to `nvme_keyring_init'
   ld: vmlinux.o: in function `nvme_core_exit':
   drivers/nvme/host/core.c:5453: undefined reference to `nvme_keyring_exit'


vim +1729 drivers/nvme/target/tcp.c

  1714	
  1715	static int nvmet_tcp_tls_handshake(struct nvmet_tcp_queue *queue)
  1716	{
  1717		int ret = -EOPNOTSUPP;
  1718		struct tls_handshake_args args;
  1719	
  1720		if (queue->state != NVMET_TCP_Q_TLS_HANDSHAKE) {
  1721			pr_warn("cannot start TLS in state %d\n", queue->state);
  1722			return -EINVAL;
  1723		}
  1724	
  1725		pr_debug("queue %d: TLS ServerHello\n", queue->idx);
  1726		args.ta_sock = queue->sock;
  1727		args.ta_done = nvmet_tcp_tls_handshake_done;
  1728		args.ta_data = queue;
> 1729		args.ta_keyring = nvme_keyring_id();
  1730		args.ta_timeout_ms = tls_handshake_timeout * 2 * 1024;
  1731	
  1732		ret = tls_server_hello_psk(&args, GFP_KERNEL);
  1733		if (ret) {
  1734			pr_err("failed to start TLS, err=%d\n", ret);
  1735		} else {
  1736			pr_debug("queue %d wakeup userspace\n", queue->idx);
  1737			nvmet_tcp_tls_data_ready(queue->sock->sk);
  1738			queue_delayed_work(nvmet_wq, &queue->tls_handshake_work,
  1739					   tls_handshake_timeout * HZ);
  1740		}
  1741		return ret;
  1742	}
  1743	

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

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

only message in thread, other threads:[~2023-03-21 22:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-21 22:08 [hare-scsi-devel:tls-netlink.v7 17/20] drivers/nvme/target/tcp.c:1729: undefined reference to `nvme_keyring_id' 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).