From: kernel test robot <lkp@intel.com>
To: Gregory Price <gourry@gourry.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Gregory Price <gourry@gourry.net>
Subject: [gourryinverse:scratch/gourry/isolation/linus 6/10] kernel/cgroup/cpuset-v1.c:296:2: error: call to undeclared function 'cpuset_update_mems_default'; ISO C99 and later do not support implicit function declarations
Date: Tue, 11 Nov 2025 23:10:44 +0800 [thread overview]
Message-ID: <202511112320.TLM8ho9H-lkp@intel.com> (raw)
tree: https://github.com/gourryinverse/linux scratch/gourry/isolation/linus
head: c74a85115777a0e4ff7ba671c4631adb4ba32ecc
commit: 81b4628c13856d1bc84678ed6655180ca0554688 [6/10] cpuset: introduce cpuset.mems.default
config: sparc64-randconfig-002-20251111 (https://download.01.org/0day-ci/archive/20251111/202511112320.TLM8ho9H-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251111/202511112320.TLM8ho9H-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/202511112320.TLM8ho9H-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/cgroup/cpuset-v1.c:296:2: error: call to undeclared function 'cpuset_update_mems_default'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
296 | cpuset_update_mems_default(cs);
| ^
kernel/cgroup/cpuset-v1.c:296:2: note: did you mean 'cpuset_mems_default'?
include/linux/cpuset.h:80:19: note: 'cpuset_mems_default' declared here
80 | extern nodemask_t cpuset_mems_default(struct task_struct *p);
| ^
1 error generated.
vim +/cpuset_update_mems_default +296 kernel/cgroup/cpuset-v1.c
284
285 void cpuset1_hotplug_update_tasks(struct cpuset *cs,
286 struct cpumask *new_cpus, nodemask_t *new_mems,
287 bool cpus_updated, bool mems_updated)
288 {
289 bool is_empty;
290
291 cpuset_callback_lock_irq();
292 cpumask_copy(cs->cpus_allowed, new_cpus);
293 cpumask_copy(cs->effective_cpus, new_cpus);
294 cs->mems_allowed = *new_mems;
295 cs->effective_mems = *new_mems;
> 296 cpuset_update_mems_default(cs);
297 cpuset_callback_unlock_irq();
298
299 /*
300 * Don't call cpuset_update_tasks_cpumask() if the cpuset becomes empty,
301 * as the tasks will be migrated to an ancestor.
302 */
303 if (cpus_updated && !cpumask_empty(cs->cpus_allowed))
304 cpuset_update_tasks_cpumask(cs, new_cpus);
305 if (mems_updated && !nodes_empty(cs->mems_allowed))
306 cpuset_update_tasks_nodemask(cs);
307
308 is_empty = cpumask_empty(cs->cpus_allowed) ||
309 nodes_empty(cs->mems_allowed);
310
311 /*
312 * Move tasks to the nearest ancestor with execution resources,
313 * This is full cgroup operation which will also call back into
314 * cpuset. Execute it asynchronously using workqueue.
315 */
316 if (is_empty && cs->css.cgroup->nr_populated_csets &&
317 css_tryget_online(&cs->css)) {
318 struct cpuset_remove_tasks_struct *s;
319
320 s = kzalloc(sizeof(*s), GFP_KERNEL);
321 if (WARN_ON_ONCE(!s)) {
322 css_put(&cs->css);
323 return;
324 }
325
326 s->cs = cs;
327 INIT_WORK(&s->work, cpuset_migrate_tasks_workfn);
328 schedule_work(&s->work);
329 }
330 }
331
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-11-11 15:10 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=202511112320.TLM8ho9H-lkp@intel.com \
--to=lkp@intel.com \
--cc=gourry@gourry.net \
--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