From: kernel test robot <lkp@intel.com>
To: Hannes Reinecke <hare@suse.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [hare-scsi-devel:configfs-ns.v2 16/17] drivers/nvme/target/loop.c:542:36: error: incomplete definition of type 'struct nsproxy'
Date: Sat, 20 Jun 2026 01:17:43 +0200 [thread overview]
Message-ID: <202606200127.TpjgremQ-lkp@intel.com> (raw)
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-rust (https://download.01.org/0day-ci/archive/20260620/202606200127.TpjgremQ-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260620/202606200127.TpjgremQ-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/202606200127.TpjgremQ-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/nvme/target/loop.c:542:36: error: incomplete definition of type 'struct nsproxy'
542 | if (p->net_ns != current->nsproxy->net_ns)
| ~~~~~~~~~~~~~~~~^
include/linux/sched.h:72:8: note: forward declaration of 'struct nsproxy'
72 | struct nsproxy;
| ^
1 error generated.
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
reply other threads:[~2026-06-19 23:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202606200127.TpjgremQ-lkp@intel.com \
--to=lkp@intel.com \
--cc=hare@suse.de \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox