public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [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
@ 2023-12-17  4:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-17  4:34 UTC (permalink / raw)
  To: Kent Overstreet; +Cc: llvm, oe-kbuild-all, Kent Overstreet

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

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

only message in thread, other threads:[~2023-12-17  4:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-17  4:34 [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 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