All of lore.kernel.org
 help / color / mirror / Atom feed
* [brauner-github:work.coredump.socket 12/14] fs/pidfs.c:597:31: error: invalid use of undefined type 'const struct coredump_params'
@ 2025-05-02 15:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-02 15:57 UTC (permalink / raw)
  To: Christian Brauner; +Cc: oe-kbuild-all, Christian Brauner

tree:   https://github.com/brauner/linux.git work.coredump.socket
head:   fed163064146d254b65f674b2072bf51bc26bbfa
commit: 745300388cabf3ae30ad74c7d35f563adab09d30 [12/14] pidfs, coredump: add PIDFD_INFO_COREDUMP
config: arc-randconfig-002-20250502 (https://download.01.org/0day-ci/archive/20250502/202505022346.pQyGcLS8-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250502/202505022346.pQyGcLS8-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/202505022346.pQyGcLS8-lkp@intel.com/

All errors (new ones prefixed by >>):

   fs/pidfs.c: In function 'pidfs_coredump':
>> fs/pidfs.c:597:31: error: invalid use of undefined type 'const struct coredump_params'
     597 |         struct pid *pid = cprm->pid;
         |                               ^~
   fs/pidfs.c:610:49: error: invalid use of undefined type 'const struct coredump_params'
     610 |         coredump_mask = pidfs_coredump_mask(cprm->mm_flags);
         |                                                 ^~


vim +597 fs/pidfs.c

   594	
   595	void pidfs_coredump(const struct coredump_params *cprm)
   596	{
 > 597		struct pid *pid = cprm->pid;
   598		struct pidfs_exit_info *exit_info;
   599		struct dentry *dentry;
   600		struct inode *inode;
   601		__u32 coredump_mask = 0;
   602	
   603		dentry = stashed_dentry_get(&pid->stashed);
   604		if (WARN_ON_ONCE(!dentry))
   605			return;
   606	
   607		inode = d_inode(dentry);
   608		exit_info = &pidfs_i(inode)->__pei;
   609		/* Note how we were coredumped. */
   610		coredump_mask = pidfs_coredump_mask(cprm->mm_flags);
   611		/* Note that we actually did coredump. */
   612		coredump_mask |= PIDFD_COREDUMPED;
   613		/* If coredumping is set to skip we should never end up here. */
   614		VFS_WARN_ON_ONCE(coredump_mask & PIDFD_COREDUMP_SKIP);
   615		smp_store_release(&exit_info->coredump_mask, coredump_mask);
   616		/* Fwiw, this cannot be the last reference. */
   617		dput(dentry);
   618	}
   619	

-- 
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:[~2025-05-02 15:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-02 15:57 [brauner-github:work.coredump.socket 12/14] fs/pidfs.c:597:31: error: invalid use of undefined type 'const struct coredump_params' 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.