* [thomas-weissschuh:b4/umh-h 6/6] net/bridge/br_stp_if.c:135:7: error: call to undeclared function 'call_usermodehelper'; ISO C99 and later do not support implicit function declarations
@ 2025-07-30 19:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-30 19:59 UTC (permalink / raw)
To: Thomas Weißschuh; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/umh-h
head: 15d07db86bdfa4c328a18630d82990d592395d4d
commit: 15d07db86bdfa4c328a18630d82990d592395d4d [6/6] modules/kmod: remove transitive of umh.h
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250730/202507302142.GBJ0vrZI-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250730/202507302142.GBJ0vrZI-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/202507302142.GBJ0vrZI-lkp@intel.com/
All errors (new ones prefixed by >>):
>> net/bridge/br_stp_if.c:135:7: error: call to undeclared function 'call_usermodehelper'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
135 | rc = call_usermodehelper(BR_STP_PROG, argv, envp, UMH_WAIT_PROC);
| ^
>> net/bridge/br_stp_if.c:135:52: error: use of undeclared identifier 'UMH_WAIT_PROC'
135 | rc = call_usermodehelper(BR_STP_PROG, argv, envp, UMH_WAIT_PROC);
| ^
2 errors generated.
--
>> fs/ocfs2/stackglue.c:432:8: error: call to undeclared function 'call_usermodehelper'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
432 | ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC);
| ^
>> fs/ocfs2/stackglue.c:432:49: error: use of undeclared identifier 'UMH_WAIT_PROC'
432 | ret = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC);
| ^
2 errors generated.
vim +/call_usermodehelper +135 net/bridge/br_stp_if.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 127
308433155a67cb Vivien Didelot 2016-09-08 128 static int br_stp_call_user(struct net_bridge *br, char *arg)
9cde070874b822 Stephen Hemminger 2007-03-21 129 {
308433155a67cb Vivien Didelot 2016-09-08 130 char *argv[] = { BR_STP_PROG, br->dev->name, arg, NULL };
9cde070874b822 Stephen Hemminger 2007-03-21 131 char *envp[] = { NULL };
308433155a67cb Vivien Didelot 2016-09-08 132 int rc;
308433155a67cb Vivien Didelot 2016-09-08 133
308433155a67cb Vivien Didelot 2016-09-08 134 /* call userspace STP and report program errors */
308433155a67cb Vivien Didelot 2016-09-08 @135 rc = call_usermodehelper(BR_STP_PROG, argv, envp, UMH_WAIT_PROC);
308433155a67cb Vivien Didelot 2016-09-08 136 if (rc > 0) {
308433155a67cb Vivien Didelot 2016-09-08 137 if (rc & 0xff)
308433155a67cb Vivien Didelot 2016-09-08 138 br_debug(br, BR_STP_PROG " received signal %d\n",
308433155a67cb Vivien Didelot 2016-09-08 139 rc & 0x7f);
308433155a67cb Vivien Didelot 2016-09-08 140 else
308433155a67cb Vivien Didelot 2016-09-08 141 br_debug(br, BR_STP_PROG " exited with code %d\n",
308433155a67cb Vivien Didelot 2016-09-08 142 (rc >> 8) & 0xff);
308433155a67cb Vivien Didelot 2016-09-08 143 }
308433155a67cb Vivien Didelot 2016-09-08 144
308433155a67cb Vivien Didelot 2016-09-08 145 return rc;
308433155a67cb Vivien Didelot 2016-09-08 146 }
308433155a67cb Vivien Didelot 2016-09-08 147
:::::: The code at line 135 was first introduced by commit
:::::: 308433155a67cb097142292c8943e0aa8d1a1c79 net: bridge: add helper to call /sbin/bridge-stp
:::::: TO: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
:::::: CC: David S. Miller <davem@davemloft.net>
--
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-07-30 19:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-30 19:59 [thomas-weissschuh:b4/umh-h 6/6] net/bridge/br_stp_if.c:135:7: error: call to undeclared function 'call_usermodehelper'; 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;
as well as URLs for NNTP newsgroup(s).