* [linux-next:master 3974/5236] pid_max.c:42:15: warning: implicit declaration of function 'mount'
@ 2024-12-22 12:41 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-22 12:41 UTC (permalink / raw)
To: Christian Brauner; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 8155b4ef3466f0e289e8fcc9e6e62f3f4dceeac2
commit: ef5bbd2a286805b0f97b5fa8616d28a84336ee7b [3974/5236] Merge branch 'vfs-6.14.mount' into vfs.all
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241222/202412222015.lMBH62zB-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/202412222015.lMBH62zB-lkp@intel.com/
All warnings (new ones prefixed by >>):
pid_max.c: In function 'pid_max_cb':
>> pid_max.c:42:15: warning: implicit declaration of function 'mount' [-Wimplicit-function-declaration]
42 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
| ^~~~~
pid_max.c:42:36: error: 'MS_PRIVATE' undeclared (first use in this function); did you mean 'MAP_PRIVATE'?
42 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
| ^~~~~~~~~~
| MAP_PRIVATE
pid_max.c:42:36: note: each undeclared identifier is reported only once for each function it appears in
pid_max.c:42:49: error: 'MS_REC' undeclared (first use in this function)
42 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
| ^~~~~~
>> pid_max.c:48:9: warning: implicit declaration of function 'umount2'; did you mean 'SYS_umount2'? [-Wimplicit-function-declaration]
48 | umount2("/proc", MNT_DETACH);
| ^~~~~~~
| SYS_umount2
pid_max.c:48:26: error: 'MNT_DETACH' undeclared (first use in this function)
48 | umount2("/proc", MNT_DETACH);
| ^~~~~~~~~~
pid_max.c: In function 'pid_max_nested_inner':
pid_max.c:88:36: error: 'MS_PRIVATE' undeclared (first use in this function); did you mean 'MAP_PRIVATE'?
88 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
| ^~~~~~~~~~
| MAP_PRIVATE
pid_max.c:88:49: error: 'MS_REC' undeclared (first use in this function)
88 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
| ^~~~~~
pid_max.c:94:26: error: 'MNT_DETACH' undeclared (first use in this function)
94 | umount2("/proc", MNT_DETACH);
| ^~~~~~~~~~
pid_max.c: In function 'pid_max_nested_outer':
pid_max.c:163:36: error: 'MS_PRIVATE' undeclared (first use in this function); did you mean 'MAP_PRIVATE'?
163 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
| ^~~~~~~~~~
| MAP_PRIVATE
pid_max.c:163:49: error: 'MS_REC' undeclared (first use in this function)
163 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
| ^~~~~~
pid_max.c:169:26: error: 'MNT_DETACH' undeclared (first use in this function)
169 | umount2("/proc", MNT_DETACH);
| ^~~~~~~~~~
pid_max.c: In function 'pid_max_nested_limit_inner':
pid_max.c:232:36: error: 'MS_PRIVATE' undeclared (first use in this function); did you mean 'MAP_PRIVATE'?
232 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
| ^~~~~~~~~~
| MAP_PRIVATE
pid_max.c:232:49: error: 'MS_REC' undeclared (first use in this function)
232 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
| ^~~~~~
pid_max.c:238:26: error: 'MNT_DETACH' undeclared (first use in this function)
238 | umount2("/proc", MNT_DETACH);
| ^~~~~~~~~~
pid_max.c: In function 'pid_max_nested_limit_outer':
pid_max.c:289:36: error: 'MS_PRIVATE' undeclared (first use in this function); did you mean 'MAP_PRIVATE'?
289 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
| ^~~~~~~~~~
| MAP_PRIVATE
pid_max.c:289:49: error: 'MS_REC' undeclared (first use in this function)
289 | ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
| ^~~~~~
pid_max.c:295:26: error: 'MNT_DETACH' undeclared (first use in this function)
295 | umount2("/proc", MNT_DETACH);
| ^~~~~~~~~~
--
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:[~2024-12-22 12:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-22 12:41 [linux-next:master 3974/5236] pid_max.c:42:15: warning: implicit declaration of function 'mount' 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.