tree:
https://github.com/norov/linux bm8
head: 0a0ad2ef1593e9a9fbb0689e791698d8496a52a8
commit: 50128e2f5132bd1f35ecb626628a6ea1cdeb8779 [6/8] cpumask: use find_first_and_bit()
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/norov/linux/commit/50128e2f5132bd1f35ecb626628a6ea1cde...
git remote add norov
https://github.com/norov/linux
git fetch --no-tags norov bm8
git checkout 50128e2f5132bd1f35ecb626628a6ea1cdeb8779
# save the attached .config to linux build tree
make W=1 ARCH=um SUBARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/rcupdate.h:29,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from arch/x86/um/shared/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
> include/linux/cpumask.h:602:14: error: redefinition of
'cpumask_first_and'
602 | unsigned int cpumask_first_and(const struct
cpumask *srcp1, const struct cpumask *srcp2)
| ^~~~~~~~~~~~~~~~~
include/linux/cpumask.h:126:28: note: previous definition of
'cpumask_first_and' was here
126 | static inline unsigned int cpumask_first_and(const struct cpumask *srcp1,
| ^~~~~~~~~~~~~~~~~
In file included from arch/um/kernel/asm-offsets.c:1:
arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no previous prototype for
'foo' [-Wmissing-prototypes]
9 | void foo(void)
| ^~~
--
arch/x86/um/user-offsets.c:18:6: warning: no previous prototype for 'foo'
[-Wmissing-prototypes]
18 | void foo(void)
| ^~~
In file included from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/rcupdate.h:29,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from arch/x86/um/shared/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
> include/linux/cpumask.h:602:14: error: redefinition of
'cpumask_first_and'
602 | unsigned int cpumask_first_and(const struct
cpumask *srcp1, const struct cpumask *srcp2)
| ^~~~~~~~~~~~~~~~~
include/linux/cpumask.h:126:28: note: previous definition of
'cpumask_first_and' was here
126 | static inline unsigned int cpumask_first_and(const struct cpumask *srcp1,
| ^~~~~~~~~~~~~~~~~
In file included from arch/um/kernel/asm-offsets.c:1:
arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no previous prototype for
'foo' [-Wmissing-prototypes]
9 | void foo(void)
| ^~~
make[2]: *** [scripts/Makefile.build:118: arch/um/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1288: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:222: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
error: no override and no default toolchain set
init/Kconfig:70:warning: 'RUSTC_VERSION': number is invalid
arch/x86/um/user-offsets.c:18:6: warning: no previous prototype for 'foo'
[-Wmissing-prototypes]
18 | void foo(void)
| ^~~
In file included from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/rcupdate.h:29,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from arch/x86/um/shared/sysdep/kernel-offsets.h:3,
from arch/um/kernel/asm-offsets.c:1:
> include/linux/cpumask.h:602:14: error: redefinition of
'cpumask_first_and'
602 | unsigned int cpumask_first_and(const struct
cpumask *srcp1, const struct cpumask *srcp2)
| ^~~~~~~~~~~~~~~~~
include/linux/cpumask.h:126:28: note: previous definition of
'cpumask_first_and' was here
126 | static inline unsigned int cpumask_first_and(const struct cpumask *srcp1,
| ^~~~~~~~~~~~~~~~~
In file included from arch/um/kernel/asm-offsets.c:1:
arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no previous prototype for
'foo' [-Wmissing-prototypes]
9 | void foo(void)
| ^~~
make[2]: *** [scripts/Makefile.build:118: arch/um/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1288: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:222: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/cpumask_first_and +602 include/linux/cpumask.h
593
594 /**
595 * cpumask_first_and - return the first cpu from *srcp1 & *srcp2
596 * @src1p: the first input
597 * @src2p: the second input
598 *
599 * Returns >= nr_cpu_ids if no cpus set in both. See also cpumask_next_and().
600 */
601 static inline
602 unsigned int cpumask_first_and(const struct cpumask *srcp1, const
struct cpumask *srcp2)
603 {
604 return find_first_and_bit(cpumask_bits(srcp1), cpumask_bits(srcp2),
nr_cpumask_bits);
605 }
606
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org