* [norov:cpumask_next 28/33] include/linux/cpumask.h:332:14: error: conflicting types for 'cpumask_next_wrap'
@ 2025-05-16 2:12 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-16 2:12 UTC (permalink / raw)
To: Yury Norov; +Cc: oe-kbuild-all
tree: https://github.com/norov/linux cpumask_next
head: f5d2cd0e6f0ad7ba267dcb972d57a142cf3a3d69
commit: d365b5a3cf38800c47dfc894774cb3b0663d170f [28/33] cpumask: introduce cpumask_random()
config: riscv-randconfig-001-20250516 (https://download.01.org/0day-ci/archive/20250516/202505161033.49W9RT6g-lkp@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250516/202505161033.49W9RT6g-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/202505161033.49W9RT6g-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/riscv/include/asm/processor.h:55:0,
from arch/riscv/include/asm/thread_info.h:42,
from include/linux/thread_info.h:60,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:79,
from include/linux/spinlock.h:56,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from include/linux/mm.h:7,
from arch/riscv/kernel/asm-offsets.c:8:
>> include/linux/cpumask.h:332:14: error: conflicting types for 'cpumask_next_wrap'
unsigned int cpumask_next_wrap(const struct cpumask *src)
^~~~~~~~~~~~~~~~~
include/linux/cpumask.h:317:14: note: previous definition of 'cpumask_next_wrap' was here
unsigned int cpumask_next_wrap(int n, const struct cpumask *src)
^~~~~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:98: arch/riscv/kernel/asm-offsets.s] Error 1 shuffle=2351650872
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1282: prepare0] Error 2 shuffle=2351650872
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=2351650872
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2 shuffle=2351650872
make: Target 'prepare' not remade because of errors.
vim +/cpumask_next_wrap +332 include/linux/cpumask.h
324
325 /**
326 * cpumask_random - get random cpu in *src.
327 * @src: cpumask pointer
328 *
329 * Return: random set bit, or >= nr_cpu_ids if @src is empty.
330 */
331 static __always_inline
> 332 unsigned int cpumask_next_wrap(const struct cpumask *src)
333 {
334 return find_random_bit(cpumask_bits(src), nr_cpu_ids);
335 }
336
--
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-05-16 2:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-16 2:12 [norov:cpumask_next 28/33] include/linux/cpumask.h:332:14: error: conflicting types for 'cpumask_next_wrap' 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;
as well as URLs for NNTP newsgroup(s).