From: kernel test robot <lkp@intel.com>
To: Frederic Weisbecker <frederic@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [frederic-dynticks:kthread/core 15/15] kernel/sched/isolation.c:49:37: error: call to undeclared function 'lockdep_is_cpuset_held'; ISO C99 and later do not support implicit function declarations
Date: Wed, 28 May 2025 01:43:31 +0800 [thread overview]
Message-ID: <202505280104.0qNWdu1l-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git kthread/core
head: 5f864154521cea5391361b58372298785bc43639
commit: 5f864154521cea5391361b58372298785bc43639 [15/15] sched/isolation: Convert housekeeping cpumasks to rcu pointers
config: s390-randconfig-002-20250528 (https://download.01.org/0day-ci/archive/20250528/202505280104.0qNWdu1l-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250528/202505280104.0qNWdu1l-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/202505280104.0qNWdu1l-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/sched/build_utility.c:102:
>> kernel/sched/isolation.c:49:37: error: call to undeclared function 'lockdep_is_cpuset_held'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
49 | if (IS_ENABLED(CONFIG_CPUSETS) && lockdep_is_cpuset_held())
| ^
kernel/sched/isolation.c:49:37: note: did you mean 'lockdep_is_cpus_held'?
include/linux/cpuhplock.h:15:12: note: 'lockdep_is_cpus_held' declared here
15 | extern int lockdep_is_cpus_held(void);
| ^
1 error generated.
vim +/lockdep_is_cpuset_held +49 kernel/sched/isolation.c
39
40 static bool housekeeping_dereference_check(enum hk_type type)
41 {
42 if (type == HK_TYPE_DOMAIN) {
43 if (system_state == SYSTEM_BOOTING)
44 return true;
45 if (IS_ENABLED(CONFIG_HOTPLUG_CPU) && lockdep_is_cpus_write_held())
46 return true;
47 if (percpu_rwsem_is_held(&housekeeping_pcpu_lock))
48 return true;
> 49 if (IS_ENABLED(CONFIG_CPUSETS) && lockdep_is_cpuset_held())
50 return true;
51
52 return false;
53 }
54
55 return true;
56 }
57
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-05-27 17:44 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=202505280104.0qNWdu1l-lkp@intel.com \
--to=lkp@intel.com \
--cc=frederic@kernel.org \
--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