oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [hare-nvme:secure-concat.v4 20/20] drivers/nvme/target/fabrics-cmd.c:213:25: error: 'struct nvmet_sq' has no member named 'tls_key'
@ 2024-05-10 19:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-10 19:55 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: 8986008182ed104f529376181e6cfd13efa627e2 [20/20] nvmet-tcp: support secure channel concatenation
config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20240511/202405110327.Q7FhhWrD-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/202405110327.Q7FhhWrD-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/202405110327.Q7FhhWrD-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/asm-generic/bug.h:22,
                    from arch/loongarch/include/asm/bug.h:60,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:13,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/loongarch/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:79,
                    from include/linux/spinlock.h:56,
                    from include/linux/wait.h:9,
                    from include/linux/wait_bit.h:8,
                    from include/linux/fs.h:6,
                    from include/linux/highmem.h:5,
                    from include/linux/bvec.h:10,
                    from include/linux/blk_types.h:10,
                    from include/linux/blkdev.h:9,
                    from drivers/nvme/target/fabrics-cmd.c:7:
   drivers/nvme/target/fabrics-cmd.c: In function 'nvmet_connect_result':
>> drivers/nvme/target/fabrics-cmd.c:213:25: error: 'struct nvmet_sq' has no member named 'tls_key'
     213 |                  req->sq->tls_key ? key_serial(req->sq->tls_key) : 0);
         |                         ^~
   include/linux/printk.h:429:33: note: in definition of macro 'printk_index_wrap'
     429 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                                 ^~~~~~~~~~~
   include/linux/printk.h:129:17: note: in expansion of macro 'printk'
     129 |                 printk(fmt, ##__VA_ARGS__);             \
         |                 ^~~~~~
   include/linux/printk.h:587:9: note: in expansion of macro 'no_printk'
     587 |         no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~
   drivers/nvme/target/fabrics-cmd.c:210:9: note: in expansion of macro 'pr_debug'
     210 |         pr_debug("%s: ctrl %d qid %d should %sauthenticate, tls psk %08x\n",
         |         ^~~~~~~~
   drivers/nvme/target/fabrics-cmd.c:213:55: error: 'struct nvmet_sq' has no member named 'tls_key'
     213 |                  req->sq->tls_key ? key_serial(req->sq->tls_key) : 0);
         |                                                       ^~
   include/linux/printk.h:429:33: note: in definition of macro 'printk_index_wrap'
     429 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                                 ^~~~~~~~~~~
   include/linux/printk.h:129:17: note: in expansion of macro 'printk'
     129 |                 printk(fmt, ##__VA_ARGS__);             \
         |                 ^~~~~~
   include/linux/printk.h:587:9: note: in expansion of macro 'no_printk'
     587 |         no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~
   drivers/nvme/target/fabrics-cmd.c:210:9: note: in expansion of macro 'pr_debug'
     210 |         pr_debug("%s: ctrl %d qid %d should %sauthenticate, tls psk %08x\n",
         |         ^~~~~~~~
--
   In file included from drivers/nvme/target/tcp.c:13:
   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;
         |                ^
   drivers/nvme/target/tcp.c: In function 'nvmet_tcp_release_queue_work':
>> drivers/nvme/target/tcp.c:1609:27: error: 'struct nvmet_sq' has no member named 'tls_key'
    1609 |         if (queue->nvme_sq.tls_key)
         |                           ^
   drivers/nvme/target/tcp.c:1610:39: error: 'struct nvmet_sq' has no member named 'tls_key'
    1610 |                 key_put(queue->nvme_sq.tls_key);
         |                                       ^
   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 +213 drivers/nvme/target/fabrics-cmd.c

   201	
   202	static u32 nvmet_connect_result(struct nvmet_ctrl *ctrl, struct nvmet_req *req)
   203	{
   204		bool needs_auth = nvmet_has_auth(ctrl, req);
   205	
   206		/* Do not authenticate I/O queues for secure concatenation */
   207		if (ctrl->concat && req->sq->qid)
   208			needs_auth = false;
   209	
   210		pr_debug("%s: ctrl %d qid %d should %sauthenticate, tls psk %08x\n",
   211			 __func__, ctrl->cntlid, req->sq->qid,
   212			 needs_auth ? "" : "not ",
 > 213			 req->sq->tls_key ? key_serial(req->sq->tls_key) : 0);
   214		return (u32)ctrl->cntlid |
   215			(needs_auth ? NVME_CONNECT_AUTHREQ_ATR : 0);
   216	}
   217	

-- 
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 19:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10 19:55 [hare-nvme:secure-concat.v4 20/20] drivers/nvme/target/fabrics-cmd.c:213:25: error: 'struct nvmet_sq' has no member named 'tls_key' 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).