* [hare-scsi-devel:configfs-ns.v2 16/17] drivers/nvme/target/loop.c:542:50: error: invalid use of undefined type 'struct nsproxy'
@ 2026-06-22 10:38 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-06-22 10:38 UTC (permalink / raw)
To: Hannes Reinecke; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git configfs-ns.v2
head: e2bc6e23c907dceafa9ce30beca26cdc05bb664d
commit: 5ee9c143b806000467a489e080f5d0f7db3af48e [16/17] nvmet-loop: skip ports from wrong namespaces
config: x86_64-randconfig-013-20260622 (https://download.01.org/0day-ci/archive/20260622/202606221805.qd2sDCjv-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260622/202606221805.qd2sDCjv-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/202606221805.qd2sDCjv-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/nvme/target/loop.c: In function 'nvme_loop_find_port':
>> drivers/nvme/target/loop.c:542:50: error: invalid use of undefined type 'struct nsproxy'
542 | if (p->net_ns != current->nsproxy->net_ns)
| ^~
vim +542 drivers/nvme/target/loop.c
534
535 static struct nvmet_port *nvme_loop_find_port(struct nvme_ctrl *ctrl)
536 {
537 struct nvmet_port *p, *found = NULL;
538
539 mutex_lock(&nvme_loop_ports_mutex);
540 list_for_each_entry(p, &nvme_loop_ports, entry) {
541 /* Skip ports from non-matching namespaces */
> 542 if (p->net_ns != current->nsproxy->net_ns)
543 continue;
544 /* if no transport address is specified use the first port */
545 if ((ctrl->opts->mask & NVMF_OPT_TRADDR) &&
546 strcmp(ctrl->opts->traddr, p->disc_addr.traddr))
547 continue;
548 found = p;
549 break;
550 }
551 mutex_unlock(&nvme_loop_ports_mutex);
552 return found;
553 }
554
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* [hare-scsi-devel:configfs-ns.v2 16/17] drivers/nvme/target/loop.c:542:50: error: invalid use of undefined type 'struct nsproxy'
@ 2026-06-19 22:06 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-06-19 22:06 UTC (permalink / raw)
To: Hannes Reinecke; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git configfs-ns.v2
head: e2bc6e23c907dceafa9ce30beca26cdc05bb664d
commit: 5ee9c143b806000467a489e080f5d0f7db3af48e [16/17] nvmet-loop: skip ports from wrong namespaces
config: x86_64-rhel-9.4-ltp (https://download.01.org/0day-ci/archive/20260619/202606192319.n0SQ1lZJ-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260619/202606192319.n0SQ1lZJ-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/202606192319.n0SQ1lZJ-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/nvme/target/loop.c: In function 'nvme_loop_find_port':
>> drivers/nvme/target/loop.c:542:50: error: invalid use of undefined type 'struct nsproxy'
542 | if (p->net_ns != current->nsproxy->net_ns)
| ^~
vim +542 drivers/nvme/target/loop.c
534
535 static struct nvmet_port *nvme_loop_find_port(struct nvme_ctrl *ctrl)
536 {
537 struct nvmet_port *p, *found = NULL;
538
539 mutex_lock(&nvme_loop_ports_mutex);
540 list_for_each_entry(p, &nvme_loop_ports, entry) {
541 /* Skip ports from non-matching namespaces */
> 542 if (p->net_ns != current->nsproxy->net_ns)
543 continue;
544 /* if no transport address is specified use the first port */
545 if ((ctrl->opts->mask & NVMF_OPT_TRADDR) &&
546 strcmp(ctrl->opts->traddr, p->disc_addr.traddr))
547 continue;
548 found = p;
549 break;
550 }
551 mutex_unlock(&nvme_loop_ports_mutex);
552 return found;
553 }
554
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-22 10:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-22 10:38 [hare-scsi-devel:configfs-ns.v2 16/17] drivers/nvme/target/loop.c:542:50: error: invalid use of undefined type 'struct nsproxy' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-06-19 22:06 kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.