* [norov:new 4/5] lib/group_cpus.c:24:3: error: call to undeclared function 'for_each_cpu_and_andnot_from'; ISO C99 and later do not support implicit function declarations
@ 2025-08-15 4:13 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-15 4:13 UTC (permalink / raw)
To: Yury Norov; +Cc: oe-kbuild-all
tree: https://github.com/norov/linux new
head: 27da1bc692ded269f7cd2aff5dc30a2d0ecc09e8
commit: 76c06f98eb6ec33fd7bdfb7c08a2a7a9907d23e2 [4/5] group_cpus: simplify inner loop in grp_spread_init_one()
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250815/202508150653.knkan8hw-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/20250815/202508150653.knkan8hw-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/202508150653.knkan8hw-lkp@intel.com/
All errors (new ones prefixed by >>):
>> lib/group_cpus.c:24:3: error: call to undeclared function 'for_each_cpu_and_andnot_from'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
24 | for_each_cpu_and_andnot_from(sibl, nmsk, siblmsk) {
| ^
>> lib/group_cpus.c:24:52: error: expected ';' after expression
24 | for_each_cpu_and_andnot_from(sibl, nmsk, siblmsk) {
| ^
| ;
2 errors generated.
vim +/for_each_cpu_and_andnot_from +24 lib/group_cpus.c
13
14 static void grp_spread_init_one(struct cpumask *irqmsk, struct cpumask *nmsk,
15 unsigned int cpus_per_grp)
16 {
17 const struct cpumask *siblmsk;
18 int cpu, sibl;
19
20 for_each_cpu(cpu, nmsk) {
21 /* If the cpu has siblings, use them first */
22 siblmsk = topology_sibling_cpumask(cpu);
23 sibl = cpu;
> 24 for_each_cpu_and_andnot_from(sibl, nmsk, siblmsk) {
25 __cpumask_set_cpu(sibl, irqmsk);
26 if (--cpus_per_grp)
27 return;
28 cpu = sibl + 1;
29 }
30 }
31 }
32
--
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-08-15 4:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-15 4:13 [norov:new 4/5] lib/group_cpus.c:24:3: error: call to undeclared function 'for_each_cpu_and_andnot_from'; ISO C99 and later do not support implicit function declarations kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.