From: kernel test robot <lkp@intel.com>
To: Yury Norov <yury.norov@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [norov:fns-removal 11/11] include/linux/cpumask.h:416:36: error: macro "for_each_cpu_andnot" requires 3 arguments, but only 2 given
Date: Tue, 7 May 2024 00:33:27 +0800 [thread overview]
Message-ID: <202405070023.PnTIOvo5-lkp@intel.com> (raw)
tree: https://github.com/norov/linux fns-removal
head: 2985d417a6ad2d864d53f69743b601ce51e36c6d
commit: 2985d417a6ad2d864d53f69743b601ce51e36c6d [11/11] x86/resctrl: simplify cpumask_any_housekeeping()
config: openrisc-defconfig (https://download.01.org/0day-ci/archive/20240507/202405070023.PnTIOvo5-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240507/202405070023.PnTIOvo5-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/202405070023.PnTIOvo5-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/sched.h:16,
from arch/openrisc/kernel/asm-offsets.c:23:
include/linux/cpumask.h: In function 'cpumask_andnot_any_but':
>> include/linux/cpumask.h:416:36: error: macro "for_each_cpu_andnot" requires 3 arguments, but only 2 given
416 | for_each_cpu_andnot(i, mask)
| ^
include/linux/cpumask.h:351: note: macro "for_each_cpu_andnot" defined here
351 | #define for_each_cpu_andnot(cpu, mask1, mask2) \
|
>> include/linux/cpumask.h:416:9: error: 'for_each_cpu_andnot' undeclared (first use in this function)
416 | for_each_cpu_andnot(i, mask)
| ^~~~~~~~~~~~~~~~~~~
include/linux/cpumask.h:416:9: note: each undeclared identifier is reported only once for each function it appears in
>> include/linux/cpumask.h:416:28: error: expected ';' before 'if'
416 | for_each_cpu_andnot(i, mask)
| ^
| ;
417 | if (i != cpu)
| ~~
make[3]: *** [scripts/Makefile.build:117: arch/openrisc/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1197: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:240: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/for_each_cpu_andnot +416 include/linux/cpumask.h
400
401 /**
402 * cpumask_andnot_any_but - return a "random" in an intersection of cpumasks, but not this one.
403 * @mask1: the cpumask to search
404 * @mask2: the cpumask to search
405 * @cpu: the cpu to ignore.
406 *
407 * Often used to find any cpu but smp_processor_id() in a mask.
408 * Return: >= nr_cpu_ids if no cpus set.
409 */
410 static inline
411 unsigned int cpumask_andnot_any_but(const struct cpumask *mask1, const struct cpumask *mask2,
412 unsigned int cpu)
413 {
414 unsigned int i;
415
> 416 for_each_cpu_andnot(i, mask)
417 if (i != cpu)
418 break;
419 return i;
420 }
421
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-05-06 16:34 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=202405070023.PnTIOvo5-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yury.norov@gmail.com \
/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 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.