[arnd-playground:randconfig-5.16-next 137/151] include/asm-generic/futex.h:17:9: error: implicit declaration of function 'futex_atomic_cmpxchg_inatomic_local_generic'; did you mean 'futex_atomic_cmpxchg_inatomic_local'?
From: kernel test robot
Date: Fri Oct 29 2021 - 17:09:00 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git randconfig-5.16-next
head: d18f89e8161c4cf63dd554521b305dd3374b52b3
commit: 2db331c581c8cc2f8742223470ca5cdd8d7fc312 [137/151] [SUBMITTED 20211026] futex: ensure futex_atomic_cmpxchg_inatomic() is present
config: nios2-buildonly-randconfig-r005-20211028 (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git/commit/?id=2db331c581c8cc2f8742223470ca5cdd8d7fc312
git remote add arnd-playground https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git
git fetch --no-tags arnd-playground randconfig-5.16-next
git checkout 2db331c581c8cc2f8742223470ca5cdd8d7fc312
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
In file included from ./arch/nios2/include/generated/asm/futex.h:1,
from kernel/futex/futex.h:12,
from kernel/futex/core.c:41:
kernel/futex/core.c: In function 'futex_cmpxchg_value_locked':
>> include/asm-generic/futex.h:17:9: error: implicit declaration of function 'futex_atomic_cmpxchg_inatomic_local_generic'; did you mean 'futex_atomic_cmpxchg_inatomic_local'? [-Werror=implicit-function-declaration]
17 | futex_atomic_cmpxchg_inatomic_local_generic(uval, uaddr, oldval, newval)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/futex.h:17:9: note: in definition of macro 'futex_atomic_cmpxchg_inatomic'
17 | futex_atomic_cmpxchg_inatomic_local_generic(uval, uaddr, oldval, newval)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
In file included from ./arch/nios2/include/generated/asm/futex.h:1,
from kernel/futex/futex.h:12,
from kernel/futex/waitwake.c:7:
kernel/futex/waitwake.c: In function 'futex_atomic_op_inuser':
>> include/asm-generic/futex.h:19:9: error: implicit declaration of function 'arch_futex_atomic_op_inuser_local_generic'; did you mean 'futex_atomic_op_inuser_local'? [-Werror=implicit-function-declaration]
19 | arch_futex_atomic_op_inuser_local_generic(op, oparg, oval, uaddr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/futex.h:19:9: note: in definition of macro 'arch_futex_atomic_op_inuser'
19 | arch_futex_atomic_op_inuser_local_generic(op, oparg, oval, uaddr)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +17 include/asm-generic/futex.h
8
9 #ifndef futex_atomic_cmpxchg_inatomic
10 #ifndef CONFIG_SMP
11 /*
12 * The following implementation only for uniprocessor machines.
13 * It relies on preempt_disable() ensuring mutual exclusion.
14 *
15 */
16 #define futex_atomic_cmpxchg_inatomic(uval, uaddr, oldval, newval) \
> 17 futex_atomic_cmpxchg_inatomic_local_generic(uval, uaddr, oldval, newval)
18 #define arch_futex_atomic_op_inuser(op, oparg, oval, uaddr) \
> 19 arch_futex_atomic_op_inuser_local_generic(op, oparg, oval, uaddr)
20 #endif /* CONFIG_SMP */
21 #endif
22
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip