All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christian Brauner <brauner@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev,
	Christian Brauner <christianvanbrauner@gmail.com>
Subject: [brauner-github:work.coredump.socket 12/14] fs/pidfs.c:597:31: error: invalid use of undefined type 'const struct coredump_params'
Date: Fri, 2 May 2025 23:57:14 +0800	[thread overview]
Message-ID: <202505022346.pQyGcLS8-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-05-02 15:57 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=202505022346.pQyGcLS8-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=brauner@kernel.org \
    --cc=christianvanbrauner@gmail.com \
    --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 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.