public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kent Overstreet <kmo@daterainc.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Kent Overstreet <kmo@daterainc.com>
Subject: [bcachefs:header_cleanup 22/50] ipc/util.h:188:10: error: call to undeclared function 'get_pid'; ISO C99 and later do not support implicit function declarations
Date: Sun, 17 Dec 2023 12:34:42 +0800	[thread overview]
Message-ID: <202312171259.yIFOP8e6-lkp@intel.com> (raw)

tree:   https://evilpiepirate.org/git/bcachefs.git header_cleanup
head:   7288b19e061b7aa3f46f685e9944af128f10ffd5
commit: e7caeebe946875edba9000d1168cac3b0d9d8d21 [22/50] pid: Split out pid_types.h
config: i386-buildonly-randconfig-001-20231217 (https://download.01.org/0day-ci/archive/20231217/202312171259.yIFOP8e6-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231217/202312171259.yIFOP8e6-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/202312171259.yIFOP8e6-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from ipc/ipc_sysctl.c:17:
>> ipc/util.h:188:10: error: call to undeclared function 'get_pid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                   *pos = get_pid(pid);
                          ^
>> ipc/util.h:188:8: error: incompatible integer to pointer conversion assigning to 'struct pid *' from 'int' [-Wint-conversion]
                   *pos = get_pid(pid);
                        ^ ~~~~~~~~~~~~
>> ipc/util.h:189:3: error: call to undeclared function 'put_pid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                   put_pid(old);
                   ^
   3 errors generated.


vim +/get_pid +188 ipc/util.h

^1da177e4c3f41 Linus Torvalds    2005-04-16  176  
^1da177e4c3f41 Linus Torvalds    2005-04-16  177  void kernel_to_ipc64_perm(struct kern_ipc_perm *in, struct ipc64_perm *out);
^1da177e4c3f41 Linus Torvalds    2005-04-16  178  void ipc64_perm_to_ipc_perm(struct ipc64_perm *in, struct ipc_perm *out);
1efdb69b0bb41d Eric W. Biederman 2012-02-07  179  int ipc_update_perm(struct ipc64_perm *in, struct kern_ipc_perm *out);
4241c1a3040785 Manfred Spraul    2018-08-21  180  struct kern_ipc_perm *ipcctl_obtain_check(struct ipc_namespace *ns,
444d0f621b6471 Davidlohr Bueso   2013-04-30  181  					     struct ipc_ids *ids, int id, int cmd,
444d0f621b6471 Davidlohr Bueso   2013-04-30  182  					     struct ipc64_perm *perm, int extra_perm);
^1da177e4c3f41 Linus Torvalds    2005-04-16  183  
03f1fc09180b34 Eric W. Biederman 2018-03-23  184  static inline void ipc_update_pid(struct pid **pos, struct pid *pid)
03f1fc09180b34 Eric W. Biederman 2018-03-23  185  {
03f1fc09180b34 Eric W. Biederman 2018-03-23  186  	struct pid *old = *pos;
03f1fc09180b34 Eric W. Biederman 2018-03-23  187  	if (old != pid) {
03f1fc09180b34 Eric W. Biederman 2018-03-23 @188  		*pos = get_pid(pid);
03f1fc09180b34 Eric W. Biederman 2018-03-23 @189  		put_pid(old);
03f1fc09180b34 Eric W. Biederman 2018-03-23  190  	}
03f1fc09180b34 Eric W. Biederman 2018-03-23  191  }
03f1fc09180b34 Eric W. Biederman 2018-03-23  192  

:::::: The code at line 188 was first introduced by commit
:::::: 03f1fc09180b345582889a344b012d069b3a6dbe ipc/util: Helpers for making the sysvipc operations pid namespace aware

:::::: TO: Eric W. Biederman <ebiederm@xmission.com>
:::::: CC: Eric W. Biederman <ebiederm@xmission.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2023-12-17  4:35 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=202312171259.yIFOP8e6-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kmo@daterainc.com \
    --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