Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [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
@ 2025-11-11 15:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-11 15:10 UTC (permalink / raw)
  To: Gregory Price; +Cc: llvm, oe-kbuild-all, Gregory Price

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-11-11 15:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-11 15:10 [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 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