All of lore.kernel.org
 help / color / mirror / Atom feed
* [jarkko-tpmdd:container 10/14] fs/proc/root.c:340:41: error: incomplete definition of type 'struct container'
@ 2026-02-11  7:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-11  7:51 UTC (permalink / raw)
  To: Jarkko Sakkinen; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git container
head:   ac4ec62cd4decf787406c1407f18ade110d80c5a
commit: eae87346ef7094984596a12c9096148d3989c983 [10/14] containers: Make fsopen() able to create a superblock in a container
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20260211/202602111518.6xepFJ52-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260211/202602111518.6xepFJ52-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/202602111518.6xepFJ52-lkp@intel.com/

All errors (new ones prefixed by >>):

>> fs/proc/root.c:340:41: error: incomplete definition of type 'struct container'
     340 |                 ctx->pid_ns = get_pid_ns(fc->container->pid_ns);
         |                                          ~~~~~~~~~~~~~^
   include/linux/sched.h:65:8: note: forward declaration of 'struct container'
      65 | struct container;
         |        ^
   1 error generated.


vim +340 fs/proc/root.c

   330	
   331	static int proc_init_fs_context(struct fs_context *fc)
   332	{
   333		struct proc_fs_context *ctx;
   334	
   335		ctx = kzalloc(sizeof(struct proc_fs_context), GFP_KERNEL);
   336		if (!ctx)
   337			return -ENOMEM;
   338	
   339		if (fc->container)
 > 340			ctx->pid_ns = get_pid_ns(fc->container->pid_ns);
   341		else
   342			ctx->pid_ns = get_pid_ns(task_active_pid_ns(current));
   343	
   344		put_user_ns(fc->user_ns);
   345		fc->user_ns = get_user_ns(ctx->pid_ns->user_ns);
   346		fc->fs_private = ctx;
   347		fc->ops = &proc_fs_context_ops;
   348		return 0;
   349	}
   350	

-- 
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-02-11  7:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-11  7:51 [jarkko-tpmdd:container 10/14] fs/proc/root.c:340:41: error: incomplete definition of type 'struct container' 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.