llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Wed, 30 Jul 2025 21:59:03 +0200	[thread overview]
Message-ID: <202507302142.GBJ0vrZI-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-07-30 19:59 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=202507302142.GBJ0vrZI-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=thomas.weissschuh@linutronix.de \
    /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;
as well as URLs for NNTP newsgroup(s).