Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [hare-scsi-devel:configfs-ns.v2 16/17] drivers/nvme/target/loop.c:542:36: error: incomplete definition of type 'struct nsproxy'
@ 2026-06-19 23:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-19 23:17 UTC (permalink / raw)
  To: Hannes Reinecke; +Cc: llvm, 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-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

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

only message in thread, other threads:[~2026-06-19 23:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-19 23:17 [hare-scsi-devel:configfs-ns.v2 16/17] drivers/nvme/target/loop.c:542:36: error: incomplete definition of type 'struct nsproxy' 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